proc

PROC FCMP PROBLEM

I copy the code from a paper that i found on internet. proc fcmp outlib=work.funcs.Test; function whatAmI(); return(42); endsub; quit; options cmplib=work.funcs; data _null_; rci = whatAmI(); put rci=; /* should be 42 */ run; When I execute the code, it show the message: ERROR 68-185: The function WHATAMI...

Limit the Number of Created Processes

I have two classes: Action class, that has a method for executing VBScript files, and Item class that contains a list of Action instances. My problem is that I want to limit the number of VBScript files that can be run at the same time. I have no experience with this, and I have googled and searched around, but found nothing. My only ide...

Are there any "simple" explanations of what procs and lamdbas are in Ruby?

Are there any "simple" explanations of what procs and lamdbas are in Ruby? ...

How to specify a variable expression list in a Pro*C query?

I have a little problem with a Pro*C query I'm trying to optimise. To explain, our application searches for rows in a huge database. These rows exist in several languages and the old code selected a row for each language in an array. Now as these queries are the most time consuming part of our app, I wanted to make only one query which ...

performance of table access

Hi, we are having an application which is completely written in C. for table accessing inside the code like fetching some values from atable we use pro*C and for increasing the performance of the application we also preload some tables for fetching the data.we take some input fields and fetch the output fields from the table in general....

Compile time Error in ProC (Embedded sql in C)

Please tell me whats wrong with the query. I am using Pro C. EXEC SQL SELECT 1 INTO :db_count FROM sachin t WHERE t.serialno = :serial_no AND t.amount = (:db_inamount - (SELECT NVL(overrun_amount,0) FROM sunny tovrun ...

Decode() function query in oracle

Can we use a select query in embedded sql (pro C) as the first argument in Decode() function. ...

sqlstm.sqpadto = sqlstm.sqadto causing segmentation fault

When and how sqlstm.sqpadto = sqlstm.sqadto can cause segmentation fault? I am getting segmentation fault and getting this line in the core file. I am using proC ...

How do I print out a tcl proc?

Given a simple tcl proc like proc foo {a b} {puts "$a $b"} What tcl command can I use to print out the procedure foo ... that is I want the TEXT of the proc back ... For instance: % proc foo {a b} {puts "$a $b"} % foo a b a b % puts $foo can't read "foo": no such variable ... um how do I get "foo {a b} {puts "$a $b"}" back? T...

sscanf in Python

I'm looking for an equivalent to sscanf() in Python. I want to parse /proc/net/* files, in C I could do something like this: int matches = sscanf( buffer, "%*d: %64[0-9A-Fa-f]:%X %64[0-9A-Fa-f]:%X %*X %*X:%*X %*X:%*X %*X %*d %*d %ld %*512s\n", local_addr, &local_port, rem_addr, &rem_port, &inode); I thought at ...

start learning Proc(embedded sql with C)

Hi, I am basically working on unix and c programming. i want to start learning Pro*c on unix. Is there any good online tutorial which will help me start writing simple programs in pro*c and compiling those Pro*c files.? Thanks in advance for your help. ...

SAS Proc Compare question

First off, I know pretty much nothing about SAS and I am not a programmer but an accountant, but here it goes: I am trying to compare two data sets to identify differences between them, so I am using the 'proc compare' command as follows: proc compare data=table1 compare=table2 criterion=.01; run; This works fine, but it compares lin...

Are there Ruby precedence issues with using Proc.call vs. Proc.[]?

Recently I was having a discussion with a friend about Ruby's Proc. You can call a Proc in one of several ways. One way is to invoke Proc.call: p = Proc.new { |x| "hello, #{x}" } p.call "Bob" => "hello, Bob" Another is to use braces, Proc.[]: p ["Bob"] => "hello, Bob" Are there any potential precedence issues here, or are these two...

Using 'return' in a Ruby block

I'm trying to use Ruby 1.9.1 for an embedded scripting language, so that "end-user" code gets written in a Ruby block. One issue with this is that I'd like the users to be able to use the 'return' keyword in the blocks, so they don't need to worry about implicit return values. With this in mind, this is the kind of thing I'd like to be...

oracle's pro*C compiler and gnu C (__builtin_va_list, __attribute__, etc)

I'm compiling a database library with pro*C which converts the .ppc library file to a .c file that gcc can use. However, I'm getting a lot of errors in pro*C like the following PCC-S-02201, Encountered the symbol "__ attribute__ " when expecting one of the following ... , Encountered the symbol "__builtin_va_list" wh...

How to Direct Output from a SAS Procedure to the Log or Output Window?

How do I send output from a SAS Procedure to the Output or Log window? ...

Calling a C function in a pro*C file

I have these line in my pro*C program. The function initAerage is defined in a C language and I am trying to call this function in a .pcc (pro C++) file. I am getting an error Error: initAverage(int i);was declared before with a different language extern "C" { int initAverage(int i); } Please help ...

Ruby: convert proc to lambda?

...

Best way to use PL/SQL Pacakge Cursors from Pro*C

I have a cursor defined in PL/SQL, and I am wondering what the best way to use it from Pro*C is. Normally for a cursor defined in Pro*C you would do: EXEC SQL DECLARE curs CURSOR FOR SELECT 1 FROM DUAL; EXEC SQL OPEN curs; EXEC SQL FETCH curs INTO :foo; EXEC SQL CLOSE cusr; I was hoping that the same (or similar) syntax would work for...

howto create a filesystem like /proc?

I would like to create a pseudo filesystem like /proc to access an applications configuration. How could i achieve this or where could i find some introductory dokumentation about it? ...