Reading multiple files from a sequential file stage
Moderators: chulett, rschirm, roy
Reading multiple files from a sequential file stage
I am trying to read multiple files from a sequential file stage.If I try to read one file at one time I can view the data.But If I specify read method to Specific File(s) and read all the files then aso I can view the data for all the files but I find a special charater at the beginning of the file (ie the 1st record of the file has a special character )when I view the data .Do I need to specify any file delimiter if so what is the option?.
Please advice.
Thanks
Please advice.
Thanks
Re: Reading multiple files from a sequential file stage
Hope
You are using MFile stage
You are using MFile stage
Hope wrote:I am trying to read multiple files from a sequential file stage.If I try to read one file at one time I can view the data.But If I specify read method to Specific File(s) and read all the files then aso I can view the data for all the files but I find a special charater at the beginning of the file (ie the 1st record of the file has a special character )when I view the data .Do I need to specify any file delimiter if so what is the option?.
Please advice.
Thanks
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Depends what "the file names are all different" actually means. If they are sufficiently different that no suitable wildcard pattern can be found, then multiple File properties with a mode of Specific File is likely to be preferred.
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.
Assuming they are all located in the same directory, no matter how 'sufficiently different' their filenames were, a suitable wildcard pattern could be "*" or "*.*", I would think. Unless there are other filenames that should not be picked up at the same time, of course.
I'm guessing that the multiple Specific File option is more about files in multiple locations or cherry-picking files out of the herd from the same location than just the fact that their names are all different.
I'm guessing that the multiple Specific File option is more about files in multiple locations or cherry-picking files out of the herd from the same location than just the fact that their names are all different.
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers