Folder Stage ? does'nt make sence !

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
hamzaqk
Participant
Posts: 249
Joined: Tue Apr 17, 2007 5:50 am
Location: islamabad

Folder Stage ? does'nt make sence !

Post by hamzaqk »

lookin at the funcationality of the folder stage which reads mulitple files. it only uses 2 fields one which has the file name and the other which puts all records pertaining to a particular file in one column .....

i dont get whats the point of doing this ? because if you merge records from different files, even with the same format , how can they be utilized in future use ?

thanks
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

It's not really for merging files. It serves three basic purposes:

1) Allows you to get filenames from a directory one by one.
2) Allows you to get filename and complete file content one by one.
3) Allows you to write multiple files to a directory.

Most of the time it is used for #2 feeding data to the XML Input stage which then parses / flattens the one long piece of content into individual data elements based on the XPath expressions in the stage.
-craig

"You can never have too many knives" -- Logan Nine Fingers
hamzaqk
Participant
Posts: 249
Joined: Tue Apr 17, 2007 5:50 am
Location: islamabad

Post by hamzaqk »

hi thanks !! i was just going through an article..

it will help someone understand the same problem as mine ..

http://www-128.ibm.com/developerworks/d ... g/#step1.2
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

If your post has been resolved, please mark it as such. Thanks!
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply