DSWaitForFile with '*'

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

Post Reply
gpbarsky
Participant
Posts: 160
Joined: Tue May 06, 2003 8:20 pm
Location: Argentina

DSWaitForFile with '*'

Post by gpbarsky »

Hola mis amigos.....

I'm trying to execute a DSWaitForFile with something like *.TXT as parameter to the function.

Is this possible ? Is there any special hint to take into account to have this working ?

Thanks in advance.
:wink:
Guillermo P. Barsky
Buenos Aires - Argentina
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Not possible, the stage does not support wildcards.
-craig

"You can never have too many knives" -- Logan Nine Fingers
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

<duplicate post cleared>

Dang site is acting up for me today. Push the button once, wait forever and then get two posts for the price of one. Sheesh. :?
Last edited by chulett on Fri Oct 13, 2006 3:27 pm, edited 1 time in total.
-craig

"You can never have too many knives" -- Logan Nine Fingers
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

As Craig says (says), the Wait For File activity does not support wildcards. However, such a routine would be easy to write, and could be invoked from a Routine activity.

In a loop, execute an operating system command to list whatever the wildcard refers to, and to return if the number of items listed is more than zero. Include a short SLEEP (or a NAP) in the loop so that the routine does not become a CPU hog, and handle the timeout sensibly.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply