Search found 6797 matches

by DSguru2B
Wed Dec 20, 2006 9:41 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Splitting One File to Multiple Files
Replies: 21
Views: 10159

Ha Ha Ha. Three Ha's from me :wink:
THis is more like, GettingMyWorkDoneNoMatterWhatXchange. How about that ?
by DSguru2B
Wed Dec 20, 2006 9:14 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Splitting One File to Multiple Files
Replies: 21
Views: 10159

Lets think outside of DataStage shall we. You can do this via a unix script. Here is what i can offer #!/usr/bin/ksh export filepath=/Data/SFDCDEV/scripts/dsx.txt export tempFile=/Data/SFDCDEV/scripts/my.tmp export newFileDir=/Data/SFDCDEV/scripts cat $filepath | sort | awk -F"\ " '{p...
by DSguru2B
Wed Dec 20, 2006 7:52 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Call job each 30 minutes
Replies: 16
Views: 4298

As for fmartinsferreira, you can use

Code: Select all

SLEEP 1800

to sleep for 30 minutes.
by DSguru2B
Wed Dec 20, 2006 7:48 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Call job each 30 minutes
Replies: 16
Views: 4298

I think the two sleep syntaxes that Ray is referring to is Sleep n where n is the number of seconds and the other one that he mentioned. But i am not sure about the syntax of SLEEP HH:MM. I am trying to test it but no matter what i put in HH or MM , for some reasons it just sleeps for that amount of...
by DSguru2B
Wed Dec 20, 2006 7:29 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: How to get separate Status of a job on each run?
Replies: 7
Views: 1581

chulett wrote:You'd have to write your own routine to use the various 'DSGetLog' functions to retrieve just the latest information from the log.


Look at Craig's reply again. He mentioned DSGetLog() function. Read about it in DS help. You will also be able to find many examples here on dsxchange.
by DSguru2B
Wed Dec 20, 2006 7:17 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Job Sequence got aborted?
Replies: 6
Views: 1642

Reiteration.....reiteration.....reiteration.... [yawn] and reiteration. :wink:
by DSguru2B
Wed Dec 20, 2006 7:09 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Rejects row and constraints
Replies: 5
Views: 1328

You must be having other warning messages along with that. It will also show you the record in one of the warning messages. You can look at that record, get the key and analyse that record in the source/lookup to identify the culprit column.
by DSguru2B
Wed Dec 20, 2006 7:04 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Using the Transformation Stage Variable in the OCI stage
Replies: 2
Views: 1193

Why cant you pass it as a job parameter? I highly doubt that you can retrieve a stage variable as a table name within a database stage. What you could do is do you manipulation in one job and when you know what the table name is going to be, pass that as a parameter to the second job, where you will...
by DSguru2B
Tue Dec 19, 2006 11:43 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Call job each 30 minutes
Replies: 16
Views: 4298

Yea your right, but do we have a SLEEP in Basice. Excuse my ignorance.
by DSguru2B
Tue Dec 19, 2006 11:42 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: TimeStamp Difference
Replies: 11
Views: 4021

You can write a c function. Use the time.h library. It has time structs that can get your work done. You can also do string manipulation within C. Read it like sscanf("%4d-%2d-%2 %2:%2:%2.%6d", &yr, &mo, &dy, &hh, &mm, &ss, &nn) You can do the same for t...
by DSguru2B
Tue Dec 19, 2006 11:36 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Job Sequence got aborted?
Replies: 6
Views: 1642

Make the job sequence restartable by going to the job properties and checking the box that says something to the effect, "Add checkpoints..."
by DSguru2B
Tue Dec 19, 2006 11:35 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Usind shell Script in DataStage(Px)
Replies: 11
Views: 3609

Well, if you are done with the parsing the string within DataStage then whats the point of doing it via a script. If you insist, then do the manipulation and write it to a file and then you can read that file within DataStage.
by DSguru2B
Tue Dec 19, 2006 6:35 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Call job each 30 minutes
Replies: 16
Views: 4298

if memory serves me right you would use the 'NAP' command inside the routine. And the NAP will put the routine to sleep for milliseconds.
by DSguru2B
Tue Dec 19, 2006 6:30 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: regarding dsfunctions
Replies: 6
Views: 1593

That is not the correct syntax and hence your quest. But as pointed out, you can get syntax like these from DS help.
by DSguru2B
Tue Dec 19, 2006 4:47 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Assigning Job Parameters in a UNIX script
Replies: 29
Views: 8555

As i said, cat them together with a hyphen or a comma and extract them when assigning values to the parameters of job_activity_stage. Say for eg your output looks like this remotePathName;remoteFilename Inside the jobactivity, where you specify the defaults for paramters, do this Remote File Path ==...