parameter passing

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
DSkkk
Charter Member
Charter Member
Posts: 70
Joined: Fri Nov 05, 2004 1:10 pm

parameter passing

Post by DSkkk »

hi All,
i have a master sequence which runs many jobs which grab data from different source files and finally only one M-load is done into teradata. but some times when i don't have a file for one of the sources then i just want to pass a parameter of the source name so that my job runs only that particular part of it.
i already have some parameters hardcoded into job parameters to logon into teradata.
can any one suggest?
Thanks.
g.kiran
Sainath.Srinivasan
Participant
Posts: 3337
Joined: Mon Jan 17, 2005 4:49 am
Location: United Kingdom

Post by Sainath.Srinivasan »

Maybe you can append a '' to your file. Something like

echo '' >> #SourceSystemDir#/#SourceFileName#

This will make a new file if not available but will not disturb if it already exists. Hence you can continue your normal method.
T42
Participant
Posts: 499
Joined: Thu Nov 11, 2004 6:45 pm

Post by T42 »

bah. "touch" does the job.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

This is true even on Windows. 8)

One of five UNIX-like executables that are part of DataStage is touch.exe. Of course, you may need to include the DataStage Engine directory in your PATH, or fully specify the pathname of the touch.exe command.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply