Page 1 of 1

How to pass multiple files through looping activity

Posted: Wed Apr 19, 2017 11:40 am
by deesh
Hi, i am getting multiple files with the common structure, but my senior saying need to use the loop activity in sequence jobs and solve the issue.

Please let me know how to resolve by using start and end loop in job sequencer

Posted: Wed Apr 19, 2017 12:47 pm
by danddmrs
DIRectory listing of the files
Flatten the list into a single comma delimited record of filenames
Read the file with the single record of filenames with a User Variable stage
Pass the uvParameter to the Start Loop (List Loop, Comma Delimited)

Posted: Wed Apr 19, 2017 3:41 pm
by chulett
To kill the first two birds with one stone, doing a "ls -m" should get you your list of files directly in a comma delimited list.