Process Multiple files:Process Each file in each run
Posted: Sun May 10, 2009 2:14 pm
I have a list of filenames in a file and i want to pass these file names in parameter and want to run my job for each file by keep in loop using job sequencer.
in each files header is record count and and following are data.
example:
file1timestamp.txt
-----------------------
3
1 rec1
2 rec2
3 rec3
file2timestamp.txt
--------------------
4
1 rec1
3 rec2
4 rec3
2 rec5
i need to run my job for each file.
i guess file pattern doesn't works in this scenario.And i need to process each file in each run.
Though i am invoking my DS job thru KSH, want to avoid loop step in my korn shell.
please advise me in this matter.
Thanks in Advance
kris
in each files header is record count and and following are data.
example:
file1timestamp.txt
-----------------------
3
1 rec1
2 rec2
3 rec3
file2timestamp.txt
--------------------
4
1 rec1
3 rec2
4 rec3
2 rec5
i need to run my job for each file.
i guess file pattern doesn't works in this scenario.And i need to process each file in each run.
Though i am invoking my DS job thru KSH, want to avoid loop step in my korn shell.
please advise me in this matter.
Thanks in Advance
kris