Search found 4992 matches

by kcbland
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...
by kcbland
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...
by kcbland
Fri Oct 20, 2006 12:00 pm
Forum: General
Topic: Oracle Abort Code
Replies: 3
Views: 3277

Welcome aboard! Your problem is related to the database, not DataStage. A quick google on "ORA-27063: skgfospo:" found a lot of hits, I'm sure metalink has some tips as well. Sorry, but if DataStage can't get results from a query, it's usually the database. DataStage just issues SQL.
by kcbland
Fri Oct 20, 2006 11:53 am
Forum: General
Topic: Extending DS functionality with SDK
Replies: 4
Views: 2698

What functionality are you talking about? If you mean new stages, sure, it's fully documented. There's even companies that have written plugins to give new functionality to the product. We just saw some of them at the IOD conference this week.
by kcbland
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...
by kcbland
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

Just mimic the before subroutine called ExecSH or ExecDOS using a Function. Now, that function takes your argument and executes it, returning the screen output as the answer.
by kcbland
Wed Oct 18, 2006 10:40 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: DS Schedule
Replies: 11
Views: 2880

Not really, if you don't have permissions to add cron entries you can't really use the DS Scheduler. Find a unix admin and get the necessary rights.
by kcbland
Wed Oct 18, 2006 10:38 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Project/Job Report
Replies: 2
Views: 677

Oooo, don't think that's in a support API. We usually try to get info from DS_AUDIT, but that's kind of proprietary stuff. Search the forum for DS_AUDIT to see what other folks are doing.
by kcbland
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

Why not consider using dsjob with the reporting feature built into that?
by kcbland
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...
by kcbland
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

Sorry for not keeping up with this thread, we're at the IOD conference and our attention wanders. Look in your DS BASIC manual for SDIV, or string divide. It may be the simpler method for dealing with your issue. See if that works and can you let me know?
by kcbland
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...
by kcbland
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...
by kcbland
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

The screen output comes back as an array. You need to parse the output looking for filenames, as well as deal with a no files found situation. The easiest method is something like this: LineCount=DCOUNT(ScreenOutput, @AM) For i=1 to LineCount Line=ScreenOutput<i> If TRIM(Line) <> &qu...
by kcbland
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