Search found 51 matches

by banactp
Thu Mar 03, 2005 9:58 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Delay or Wait in Job Sequence
Replies: 9
Views: 5057

Thanks for your prompt reply! :?: The problem using sleep() is how to calculate the number of seconds. I'd have to know the difference in seconds between 0200 the next day and now. "Now" is a known quantity, but how would you go about calculating the desired start time? All the nice time a...
by banactp
Thu Mar 03, 2005 9:46 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Delay or Wait in Job Sequence
Replies: 9
Views: 5057

Delay or Wait in Job Sequence

Does anyone have any suggestions as to how I could incorporate a variable-length delay into a job sequence? Specifically, what I'm trying to do is start a job sequence at a random time on a particular day, run up to the last activity in the sequence at normal speed, then delay execution of that last...
by banactp
Wed Mar 02, 2005 8:27 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Retruning strings (char pointers) from C routines
Replies: 10
Views: 5810

Re: Retruning strings (char pointers) from C routines

Modified substring? That can easily be done in Transformer stage. Give us your rules, and I can whip something up without you having to build a BuildOP or Custom stage. OK, I need a stage that processes records in which some of the fields are strings. Some, but not all of those strings need to be f...
by banactp
Tue Mar 01, 2005 9:37 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Unable to call an external C routine from a Parallel Routine
Replies: 10
Views: 8320

Hello, I'm getting the same error. The .a and .o files are in place, their folder is in the LD_LIBRARY_PATH (set in the dsenv file), and I'm compiling on the same platform that I'm running on. The commands I'm using for the build on my Solaris 5.8 system are: .../SunCompilers/bin/CC -c -DSOLARIS_CC ...
by banactp
Thu Feb 24, 2005 9:11 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Retruning strings (char pointers) from C routines
Replies: 10
Views: 5810

Thanks, Roy. Static allocation won't work becuase this is intended to be a common, widely-used routine. I can't risk having several processes trying to use the same space at once. And I don't want to lock it down and have threads waiting on such a simple routine! I'll be able to try using the space ...
by banactp
Wed Feb 23, 2005 1:01 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Retruning strings (char pointers) from C routines
Replies: 10
Views: 5810

Retruning strings (char pointers) from C routines

I would like to create a PX routine that returns a (modified) substring of an input string, much like this one posted by another user of this forum: char *substr(char *str,int st,int len) { int i,j=0,l; char *s; l = strlen(str); if(len > 0) s = (char *)malloc(100); else return(""); if(l < ...