Wait for file activity

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
lkomala
Premium Member
Premium Member
Posts: 4
Joined: Wed Jun 04, 2014 6:48 am

Wait for file activity

Post by lkomala »

I am trying to pass file name in wait for file activity stage.
File name changes for every run.

I was trying to give *.txt. but it seams stage does not accept wildcard.

Can any one please help me.

Thanks
vamsi.4a6
Participant
Posts: 334
Joined: Sun Jan 22, 2012 7:06 am
Contact:

Post by vamsi.4a6 »

I think you can use Output of Uservariable activity or Execute command activity output in Wait for file activity.
Thanks and Regards
Vamsi krishna.v
http://datastage-vamsi.blogspot.in/
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Welcome aboard.

As you've found, the WFF stage does not support wildcards so you'll need some other mechanism. How are your shell scripting skills? You could script something equivalent and then use an Execute Command stage to run it. Some other approaches inside DataStage are noted here and here.
-craig

"You can never have too many knives" -- Logan Nine Fingers
lkomala
Premium Member
Premium Member
Posts: 4
Joined: Wed Jun 04, 2014 6:48 am

Post by lkomala »

My first stage is to FTP the files to folder, second is checking whether the files came over to the folder, so using wait for file activity to watch for files if they appear my next process starts if not process ends and sends notification
lkomala
Premium Member
Premium Member
Posts: 4
Joined: Wed Jun 04, 2014 6:48 am

Post by lkomala »

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

Post by chulett »

Because of the underlying software DataStage uses, you can still use 'UNIX' scripts on a Windows DataStage server. That or replace all occurrences of "shell script" in my response with "batch file".
-craig

"You can never have too many knives" -- Logan Nine Fingers
vamsi.4a6
Participant
Posts: 334
Joined: Sun Jan 22, 2012 7:06 am
Contact:

Post by vamsi.4a6 »

lkomala wrote:My OS is windows
You can use MKS tool kit also.Use following link or google for more information

en.wikipedia.org/wiki/MKS_Toolkit
Thanks and Regards
Vamsi krishna.v
http://datastage-vamsi.blogspot.in/
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

As noted. :wink:
-craig

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