User Variable activity stage

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
rajeevm
Participant
Posts: 135
Joined: Sun Jan 22, 2006 10:44 am

User Variable activity stage

Post by rajeevm »

Hi ,

I wanted to pass the output from the Exec command output in datastage to user variable actity which holds the list of the files separated by comma delimiter and pass one file to job where i have the loop in place . This is the output from exec command output
abc.txt
xyz.txt
123.txt

These are the files from the exec command and i did below in user variable actvity variable convert(exec_command.output,@FM,',') but nothing is passing to the job for the filename

Please help me with this. I really appreciate it.

REgards
Raj
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Arguments to Convert() are in the wrong order. And the names of activity variables begin with the "$" character. Try something like

Code: Select all

Convert(@FM, ",", ExecCommand.$Output)
Build it with the expression editor so that you get hints about what goes where and don't mis-spell the activity name.
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