Find a file name coming out of a folder stage

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

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

Post by chulett »

BIuser wrote:The problem is figuring out what happens when the stored procedure sends back either a "fail" or a "good to go" response. If the response is good to go then I need to parse the rows from the file. Will I be able to go to the stored proc and then process results in a Transformer and then revert back to looking at the folder stage again and take the processing from there ?
Me, I'd split this into two jobs: one that just takes the filename and calls the stored procedure and a second one that processes the file. Only run the second if the first one approves the file. And do all this in a Looping Sequence for each file, one at a time.
-craig

"You can never have too many knives" -- Logan Nine Fingers
BIuser
Premium Member
Premium Member
Posts: 238
Joined: Thu Feb 02, 2006 4:03 am
Location: South Africa

Post by BIuser »

chulett wrote::lol:

In your shoes (even though now I know they probably wouldn't be my style) I'd build a Looping Sequence to do this rather than fight with the Folder stage, especially if the files are of any size. The Folder stage has a well known problem with 'large' files and will tend to fall over dead if the contents of the file can't be stored in memory.

What 'large' means seems to vary from system to system and O/S to O/S. Some can handle hundreds of megabytes while we've seen others that can only handle tens. FYI.
Well thanks a mil for your input, I appreciate it ... ALOT. I am going to try this looping sequence and see what I can come up with. If not, you can rely on me being back here to nag in your ears ! :shock:

So I won't mark this thread as resolved ... YET ... but i'll get there ... 8)
-------------------------
https://www.ssa.co.za
BIuser
Premium Member
Premium Member
Posts: 238
Joined: Thu Feb 02, 2006 4:03 am
Location: South Africa

Post by BIuser »

BIuser wrote:
chulett wrote::lol:

In your shoes (even though now I know they probably wouldn't be my style) I'd build a Looping Sequence to do this rather than fight with the Folder stage, especially if the files are of any size. The Folder stage has a well known problem with 'large' files and will tend to fall over dead if the contents of the file can't be stored in memory.

What 'large' means seems to vary from system to system and O/S to O/S. Some can handle hundreds of megabytes while we've seen others that can only handle tens. FYI.
Well thanks a mil for your input, I appreciate it ... ALOT. I am going to try this looping sequence and see what I can come up with. If not, you can rely on me being back here to nag in your ears ! :shock:

So I won't mark this thread as resolved ... YET ... but i'll get there ... 8)
I eventually changed my job to use a command stage. The folder stage turned out to be way too complicated for a simple task !
-------------------------
https://www.ssa.co.za
Post Reply