Hi,
I have to read multiple text files from a folder and do the processing with the data present in it, in Server jobs we have folder stage. In Parallel, do we have any stages equivalent to it. If not what is the other option for me to read each file from the folder and process data.
Regards,
Rajeev Prabhu
Read text files from a folder
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 136
- Joined: Wed Sep 29, 2004 5:56 am
- Location: Chennai
- Contact:
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
You've posted in the Parallel Extender forum.
The Parallel Sequential File stage does indeed have these properties.
Now you're complaining that the same properties are not there in server jobs.
It is NOT THE SAME STAGE TYPE!
The Parallel Sequential File stage does indeed have these properties.
Now you're complaining that the same properties are not there in server jobs.
It is NOT THE SAME STAGE TYPE!
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
-
- Participant
- Posts: 136
- Joined: Wed Sep 29, 2004 5:56 am
- Location: Chennai
- Contact:
Hi Ray,
That is fine in Parallel there is no folder stage, i am not complainting that there is no folder stage in server jobs.
You mean to say that Sequential stage acts as Folder stage in Parallel Jobs.
Regards,
Rajeev Prabhu
That is fine in Parallel there is no folder stage, i am not complainting that there is no folder stage in server jobs.
You mean to say that Sequential stage acts as Folder stage in Parallel Jobs.
Regards,
Rajeev Prabhu
ray.wurlod wrote:You've posted in the Parallel Extender forum.
The Parallel Sequential File stage does indeed have these properties.
Now you're complaining that the same properties are not there in server jobs.
It is NOT THE SAME STAGE TYPE!
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Welcome aboard! :D
Do you just want the file names, or the contents of those files?
If the former, simply execute the command - perhaps as a before-stage subroutine ExecSH - then use a Sequential File stage to read from the file myfile.txt.
If the latter, and you really are in a parallel job, use the file pattern mechanism outlined earlier.
If you're in a server job you really should have posted on that forum, but you can use the Folder stage.
Do you just want the file names, or the contents of those files?
If the former, simply execute the command - perhaps as a before-stage subroutine ExecSH - then use a Sequential File stage to read from the file myfile.txt.
If the latter, and you really are in a parallel job, use the file pattern mechanism outlined earlier.
If you're in a server job you really should have posted on that forum, but you can use the Folder stage.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact: