Search found 4992 matches
- Fri Oct 20, 2006 2:34 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Question on parameter passing to ExecSH
- Replies: 2
- Views: 1027
Are you asking for some inherent variable that contains the job's name at runtime that you can use as an argument in a before/after routine call? I guess you're trying to avoid embedding a hardcoded name and want one that automatically resolves at runtime? Search for using the macro DSJobName. You t...
- Fri Oct 20, 2006 2:26 pm
- Forum: General
- Topic: size of the logs affecting job performance
- Replies: 7
- Views: 5185
Dynamic hashed files have a modulus value that increases as the file grows. There's only two ways to change the modulus of a hashed file: CLEAR.FILE: removes all data and resets the file to the minimum modulus RESIZE.FILE: analyze the current file contents and adjust the modulus to an optimal settin...
- Fri Oct 20, 2006 12:00 pm
- Forum: General
- Topic: Oracle Abort Code
- Replies: 3
- Views: 3277
- Fri Oct 20, 2006 11:53 am
- Forum: General
- Topic: Extending DS functionality with SDK
- Replies: 4
- Views: 2698
- Fri Oct 20, 2006 11:44 am
- Forum: General
- Topic: size of the logs affecting job performance
- Replies: 7
- Views: 5185
Active stages insert lines into the log when the stages start and finish. If the log is extremely large or poorly sized (they are dynamic hashed files afterall), then these messages can seriously take a long time to get added to the hashed file. The more active stages in the job, the longer it takes...
- Thu Oct 19, 2006 9:09 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: file as a stage variable
- Replies: 2
- Views: 836
- Wed Oct 18, 2006 10:40 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: DS Schedule
- Replies: 11
- Views: 2880
- Wed Oct 18, 2006 10:38 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Project/Job Report
- Replies: 2
- Views: 677
- Wed Oct 18, 2006 10:37 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: need for loop in basic code
- Replies: 14
- Views: 5526
- Wed Oct 18, 2006 9:54 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: processing
- Replies: 5
- Views: 1580
Ignoring that your examples give different results (trim and ereplace vs. ereplace and trim), it's perfectly fine to nest functions, just keep your logic legible. Consider using stage variables when the same derivation of a value is repeated for many columns, or you need to simply a derivation/const...
- Wed Oct 18, 2006 9:26 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: uvregen - Decimal places greater than 15
- Replies: 6
- Views: 2771
- Tue Oct 17, 2006 6:15 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Reading files Dynamically and setting JOB parameters
- Replies: 8
- Views: 1962
How are you calling a routine from a job? As a before/after subroutine call? If this is so, then you can't do anything with results. Before/after subroutines DO something. Any non-zero return code is considered an error. Are you creating a Batch job as I stated? If you wish to use the call to your r...
- Tue Oct 17, 2006 5:49 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Reading files Dynamically and setting JOB parameters
- Replies: 8
- Views: 1962
Create a Batch job (from Director do Tools-->Batch-->New). Now you can enter any logic necessary. From the Add Job box, choose the job to run when a trigger file appears. Press the Add Job button. The logic for running a job is pasted into the Batch job. Now, all you have to do is write the logic to...
- Tue Oct 17, 2006 4:24 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: reading file names from a windows dir
- Replies: 7
- Views: 1914
- Tue Oct 17, 2006 3:33 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: reading file names from a windows dir
- Replies: 7
- Views: 1914
Each call to the operating system runs in its own session. Also, your logic contains a typo where NtCmd should be NTCmd to be consistent (case matters) Try:
Code: Select all
NTCmd="dir c:\temp\*.txt"
Call DSExecute("NT",NTCmd,ScreenOutput,ReturnCode)
Ans = ScreenOutput