How to pass column value as parameter

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
parameswar
Premium Member
Premium Member
Posts: 66
Joined: Sun Apr 08, 2007 12:34 pm

How to pass column value as parameter

Post by parameswar »

Hi,

I have a job which is creating a file with 2 columns . File contains 1 record only. Data in the file is 2007-04-12,2006.
I need to pass these value to FIVE different jobs as parameter.

How should I design the job to get this requirement.

Thanks in advance,
Param.
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

Design it using a sequence job. Have an execute command stage spit out the value using "cat". Then just perform a Field() function to get the first column and similarly the second column. Be sure to use CONVERT() for the second column to get rid of the field marker "@FM".
Perform the Field operation on Execute_command_stage.$Command_Output.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
parameswar
Premium Member
Premium Member
Posts: 66
Joined: Sun Apr 08, 2007 12:34 pm

Post by parameswar »

DSguru2B wrote:Design it using a sequence job. Have an execute command stage spit out the value using "cat". Then just perform a Field() function to get the first column and similarly the second column. Be sure to use CONVERT() for the second column to get rid of the field marker "@FM".
Perform the Field operation on Execute_command_stage.$Command_Output.
Thanks Guru for your inputs. Job is running fine.

Regards,
Param
Post Reply