Sequence Stage problem

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

Moderators: chulett, rschirm, roy

karthi_gana
Premium Member
Premium Member
Posts: 729
Joined: Tue Apr 28, 2009 10:49 pm

Post by karthi_gana »

how the above loop process will be executed by datastage internally?
Karthik
sathya_anjan
Participant
Posts: 20
Joined: Tue Feb 02, 2010 4:49 am
Location: United Kingdom

Post by sathya_anjan »

Karthik,

If you provide the File name from the Command Output it would be the list of all the files from the ls -m command.

The reason you are using Start List Loop option with a Comma Delimeter is feed individual file names into the Sequential stage File name.

You should use the Output from the Counter of Start Loop rather than output from Execute Command.

The difference is not in the Command but using the right output from the right stage, which is from Start Loop.

Thanks

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

Post by ray.wurlod »

Why not convert the @FM characters to commas? Then you would have a comma-delimited string that could be processed by the StartLoop activity.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
karthi_gana
Premium Member
Premium Member
Posts: 729
Joined: Tue Apr 28, 2009 10:49 pm

Post by karthi_gana »

ray.wurlod wrote:Why not convert the @FM characters to commas? Then you would have a comma-delimited string that could be processed by the StartLoop activity.
Could you explain it more pls?
Karthik
pandeesh
Premium Member
Premium Member
Posts: 1399
Joined: Sun Oct 24, 2010 5:15 am
Location: CHENNAI, TAMIL NADU

Post by pandeesh »

Use convert() to convert @FM to comma.

Code: Select all

Convert(@FM,",",column)
pandeeswaran
Post Reply