passing values to start loop activity

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
madhukar
Participant
Posts: 86
Joined: Fri May 20, 2005 4:05 pm

passing values to start loop activity

Post by madhukar »

i am passing values to start loop from a comma delimited file.
it runs well till the last value and aborts while processing last value.

any thought on this
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

What error message does it throw?
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Is there an output link (unconditional trigger) from your EndLoop activity to "the rest of the job sequence"?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
madhukar
Participant
Posts: 86
Joined: Fri May 20, 2005 4:05 pm

Post by madhukar »

job sequence design looks like this

command activity -->start loop-->job1-->end loop

i have a filelist.txt --> file1.txt,file2.txt,file3.txt\n
in command activity ---> cat filelist.txt
start loop activity mapped to command output
job1 input is mapped ---> start loop counter

file1, file2 processes fine but when it comes to third iteration file3 it fails with the following error
<sequence_name>..JobControl (@<job1_stage_name>): Controller problem: Error calling DSSetParam(<input_file_paramter_name_of_job1>), code=-4
[ParamValue/Limitvalue is not appropriate]

sorry for not putting a proper readable code
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

You've specfied comma as the delimiter, and DataStage is finding \n character. You can not have the \n character here. Or have all \n characters; specify it as the delimiter, and use ls -1 to get the list of file names.
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