Search found 64 matches

by SonShe
Thu Feb 10, 2005 9:41 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Job control in a sequencer
Replies: 8
Views: 1724

You need to use a Custom trigger to handle this. For Ran Ok and Warnings, use something like this in the trigger to Job2: Job1.$JobStatus = 1 Or Job1.$JobStatus = 2 Note that 'Job1' in the above trigger code is actually the Job Activity stage name that runs Job1. I'd suggest using an 'Otherwise' tr...
by SonShe
Thu Feb 10, 2005 9:09 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Job control in a sequencer
Replies: 8
Views: 1724

Job control in a sequencer

I have a sequencer with a few jobs in it. What I want is Job1 should trigger Job2 when Job1 is either successful or has warnings. Job1 should not trigger Job2 only when Job1 fails. Job1 --------------> Job2 -------------------> | triggers Job2 when Job1 is successful or has warnings I will appreciat...
by SonShe
Tue Feb 08, 2005 9:21 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Changing database schema name across all jobs
Replies: 6
Views: 1987

Job parameters provide insurance against things that can change over time (like passwords and selection criteria) and things that can be different on different environments (like DSNs, passwords, user IDs, schema names, pathnames). You should have made them into job parameters in the first place. M...
by SonShe
Tue Feb 08, 2005 8:31 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Changing database schema name across all jobs
Replies: 6
Views: 1987

Changing database schema name across all jobs

I am working on a project that uses Oracle as the database. The schema in the development is xxx. In the SQL statements in all the jobs, I have the follwing format: Select Cols from xxx.Tablename. Now the problem is we are ready to go to the QA and for whatever reason the schema name cannot be 'xxx'...
by SonShe
Thu Jan 27, 2005 9:26 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Parameter passing from outer sequencer to inner sequencer
Replies: 2
Views: 1360

Parameter passing from outer sequencer to inner sequencer

I have the following job design: In the main sequencer: I have a routine activity stage that determines the current date followed by a sub-sequencer. A job parameter in the sub-sequencer gets the current date from the routine activity stage as returnvalue. I also have other job parameters including ...
by SonShe
Tue Jan 25, 2005 3:09 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: DSSetParam
Replies: 5
Views: 2718

Ken, I did the way you suggested and it works. I did not have to use DSSetParam at all. I am wondering how that function works. If using batch control there is absolutely no problem in getting DSSetParam to work. However, if I am using sequencer then I would like to know if DSSetParam can be used at...
by SonShe
Tue Jan 25, 2005 1:24 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: DSSetParam
Replies: 5
Views: 2718

You absolutely cannot do this in a supported manner. You cannot change a job parameter value from within a the job itself during runtime. You must use a controlling job, such as a Batch or Sequencer, to set dynamic values at runtime. There are methods to change a parameter value during a jobs execu...
by SonShe
Tue Jan 25, 2005 11:13 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: DSSetParam
Replies: 5
Views: 2718

DSSetParam

I have the following server routine running as Before-job subroutine. I have job parameter "FILE" that needs to be set in the routine. The default value in the job properties for the parameter is "XXXX". When I run the job I can see from the log that this subroutine is working an...
by SonShe
Tue Jan 25, 2005 11:02 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: DSGetLinkInfo
Replies: 6
Views: 2337

Thank you Craig. It is very clear to me now.
by SonShe
Tue Jan 25, 2005 9:48 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: DSGetLinkInfo
Replies: 6
Views: 2337

You can use DSSetUserStatus routine within your Basic function Hi Craig, Thanks for the help. I used DSSetUserStatus and it worked. But I would like to know your approach as well. In a server routine I don't know how to return the rowcount as ans . I believe I have to write a transform routine to b...
by SonShe
Tue Jan 25, 2005 9:43 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: DSGetLinkInfo
Replies: 6
Views: 2337

Sainath.Srinivasan wrote:You can use DSSetUserStatus routine within your Basic function
Thanks for the help. It worked.
by SonShe
Tue Jan 25, 2005 6:40 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: DSGetLinkInfo
Replies: 2
Views: 1348

Thankyou, Ray.

From DSINCLUDE/JOBCONTROL.H Equ DSJE.BADLINK To -9 ;* LinkName does not refer to a known link of the stage Are you certain that the value passed from the Input Values field (to the InputArg argument) is correctly spelled and correctly cased? Even in your post you've been careless with case (DSgetLi...
by SonShe
Mon Jan 24, 2005 7:01 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: DSGetLinkInfo
Replies: 2
Views: 1348

DSGetLinkInfo

I have after-job routine that works fine when I hard code the link name in the DSgetLinkInfo function. But when I am using the InputArg to pass the link name, I am getting -9 error.

Can anyone please help how I can fix this?

Thanks.
by SonShe
Mon Jan 17, 2005 2:54 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Listing all hash files
Replies: 7
Views: 2791

You need to change :1 into your category but here is the query. select EVAL DS_JOBOBJECTS."@RECORD<6>" AS FILE_NAME FMT '35L', DS_JOBS.NAME AS JOB_NAME FMT '35L', DS_JOBOBJECTS.NAME AS LINK_NAME FMT '35L' from DS_JOBOBJECTS, DS_JOBS where DS_JOBOBJECTS.OLETYPE in ('CHashedOutput','CHashed...
by SonShe
Mon Jan 17, 2005 12:55 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Listing all hash files
Replies: 7
Views: 2791

Listing all hash files

I have a need to list all the hash files that are being created by all the jobs in one category. Then I need to some how determine which of these hash files are being used. I would appreciate if anyone can please suggest a better way to accomplish this. I was thinking of compiling the list of hash f...