Search found 4992 matches

by kcbland
Wed Apr 14, 2004 6:58 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: hashcount error
Replies: 9
Views: 2596

You do not have an ELSE clause if your OPENPATH statement fails. In that case, you never assigned RecordCount a value.
by kcbland
Tue Apr 13, 2004 2:32 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Job exit status
Replies: 12
Views: 2155

Okay, I thought you were using just sequential files. Well, write a DS function to COUNT your hash file and interrogate the results. Put that into the BEFORE-JOB activity.
by kcbland
Tue Apr 13, 2004 2:29 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Reading Hash File using UV ODBC stage
Replies: 6
Views: 1820

To use UV/ODBC to aggregate a hash file, you need to setup a pointer so that DS recognizes your hash file as a Universe file/table. Search this forum for SET.FILE, you'll see it's been covered. It's unfortunate your data is in a hash file, otherwise, you might consider dumping the hash file to a seq...
by kcbland
Tue Apr 13, 2004 2:26 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Job exit status
Replies: 12
Views: 2155

Write a ksh script that returns a non-zero returncode if a passed filename has zero rows or does not exist. Put that ksh script into the BEFORE-JOB activity of every job that needs to fail on a zero-byte or non-existent file. For the parameter to the script, pass the fully-qualified path and filename.
by kcbland
Tue Apr 13, 2004 2:23 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Using Job Control Code to set Job Parameter
Replies: 10
Views: 2536

Search the forum for using a macro. It allows you to have a dynamic filename without involving job control. However, I don't do what you're doing. I prefer to have jobs write to a constant name with a variable path. At most I'll parameterize a portion of the filename, like: #WorkFileDirectory#/D_CUS...
by kcbland
Tue Apr 13, 2004 2:01 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Job exit status
Replies: 12
Views: 2155

Or take option #2 and in the before routine run a script or function to count the file and if zero then blowup the job. I tend to like things a lot more graceful than that, so options #1 and #3 are pretty good. I'd prefer #1, because why run the job if you don't have to?
by kcbland
Tue Apr 13, 2004 2:00 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Job exit status
Replies: 12
Views: 2155

Well, you can't do what you're doing. You have to either have a job control process check the file and decide if you want to run the job, OR, have that job control process run the job and then analyze link statistics to determine if the job performed as you wished.
by kcbland
Tue Apr 13, 2004 1:58 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Using Job Control Code to set Job Parameter
Replies: 10
Views: 2536

A job cannot change its own job parameter value. Job parameters are static values once a job has started.
by kcbland
Tue Apr 13, 2004 1:49 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Job exit status
Replies: 12
Views: 2155

nag0143 wrote:Result = DSGetLinkInfo(DSJ.ME,"stagename","linkname",DSJ.LINKROWCOUNT)


DSJ.ME references your current job. You should be using the job handle for the job you want to query.
by kcbland
Tue Apr 13, 2004 1:42 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Using Job Control Code to set Job Parameter
Replies: 10
Views: 2536

Make sure your filename is like "/wherever/#RunQual#".
by kcbland
Tue Apr 13, 2004 1:39 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Reading Hash File using UV ODBC stage
Replies: 6
Views: 1820

Just use the hash file stage. Why are you using UV/ODBC???
by kcbland
Tue Apr 13, 2004 1:38 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Job exit status
Replies: 12
Views: 2155

Try logging the Result value and see what it contains.
by kcbland
Tue Apr 13, 2004 12:07 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: datastage manager and director.
Replies: 1
Views: 644

Under your Start menu, Ascential DataStage, Online Documentation, is a wealth of documentation in .pdf form. You will be stunned at the level of documentation there, on all of the client tools. In addition, you can get the Tutorial off the client install cds and learn from there. This forum is not a...
by kcbland
Tue Apr 13, 2004 11:15 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Job exit status
Replies: 12
Views: 2155

Different options:

1. Use job control and check the file first, rather than run the job.
2. Put in a BEFORE-JOB/TRANSFORMER check of the file first and have that routine return an error exit code or log a fatal message.
3. Use job control and the link statistics after the job has run.
by kcbland
Tue Apr 13, 2004 11:13 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: uv stage and hash file stage
Replies: 1
Views: 725

A UV stage has two purposes: (1) native connectivity to IBM's Universe database, of which DataStage Server is build on a proprietary derivative; (2) SQL interface to a DataStage hash file.

You can read this for more info:
http://www.dsxchange.com/viewtopic.php?t=85364