DSWaitforfile - parameters for waittime & poll time

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
santoshkumar
Charter Member
Charter Member
Posts: 35
Joined: Sun Jan 16, 2005 8:39 am
Location: US

DSWaitforfile - parameters for waittime & poll time

Post by santoshkumar »

We are using DSWaitForFile Function in a job sequence to wait for a particular file. The Inputarg is like "#$FTP_DIR_Parm#TEST.INC timeout:60/10". We want to parameterize the total wait time (60) and the poll time (10). We tried to give something like "#$FTP_DIR_Parm#TEST.INC timeout:#WAIT_TIME#/#POLL_TIME#". But the sequence aborts with a message like JobControl (DSWaitForFile): Invalid timeout string '#WAIT_TIME#' specified - did not wait. Is it possible to parametrize these two values?
Santosh
santoshkumar
Charter Member
Charter Member
Posts: 35
Joined: Sun Jan 16, 2005 8:39 am
Location: US

Post by santoshkumar »

Sorry. I did not give the inputarg in the right format. Thats why it dint work earlier. The format had to be something like "#$FTP_DIR_Parm#TEST.INC timeout:": TOTAL_TIME :"/": POLL_TIME for it to work. I was able to parameterize these two variables. Thanks guys.
Santosh
kumar_s
Charter Member
Charter Member
Posts: 5245
Joined: Thu Jun 16, 2005 11:00 pm

Post by kumar_s »

Its interesting to see timeouts can be parametereized.
Is it "#$FTP_DIR_Parm#TEST.INC timeout:":#TOTAL_TIME#:"/": #POLL_TIME#
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
Post Reply