Hi,
I have got a folder stage and say i just need to read two specific files i.e. file1.txt and file2.txt out of 100 files in that folder. How can I do that?
Regards
reading from folder stage
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Not possible unless you can guarantee that these are the only files in the directory.
Prefer a sequential file stage if the files have the same structure, or two separate data streams otherwise.
Prefer a sequential file stage if the files have the same structure, or two separate data streams otherwise.
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:
Technically, 'filters' and 'wildcards' are not equivalent. However, wildcards can be used with more than just the splat - '*'. For example on UNIX:
Will get you just file1.txt and file2.txt out of the '100 files in that folder'.
Code: Select all
file[1-2].txt
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers