Parameter from a file

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
kommven
Charter Member
Charter Member
Posts: 125
Joined: Mon Jul 12, 2004 12:37 pm

Parameter from a file

Post by kommven »

can I head or tail a flat file and use them as parameter to a job.

We have to run our jobs with parameters coming from a flat file.

Any suggestions?

I have heard that I can use a hash stage and query it using routine to get the parameter file. But again its a parallel job.

-R
srividhya
Participant
Posts: 42
Joined: Tue May 31, 2005 10:11 am

Post by srividhya »

Hi,

Use the execute command in job sequence , get the tail or head of the file using the unix scripts .
then pass the ouput of the unix script as a parameter to the 2nd job using
Execute_command .$CommandOutput

It works for me .

Thanks
Sri
kommven
Charter Member
Charter Member
Posts: 125
Joined: Mon Jul 12, 2004 12:37 pm

Post by kommven »

Thanks,
It worked....

-R
Post Reply