Page 1 of 1

parameter passing

Posted: Mon Mar 07, 2005 10:11 am
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.

Posted: Mon Mar 07, 2005 10:17 am
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.

Posted: Mon Mar 07, 2005 7:35 pm
by T42
bah. "touch" does the job.

Posted: Mon Mar 07, 2005 8:19 pm
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.