Page 1 of 1

Execute command issue

Posted: Tue Jul 03, 2012 1:50 am
by roy
Hi All,
I came across a strange behaviour.
A server routine that calls dsexecute to performs: more +n filea > fileb
works fine when executed from the test routine option but when used from a sequence job both via routine stage or exec command stage the output file is empty.
parameters are same for test and sequence job but only from test option the output file has the desired content.
Has anyone faced this issue before?

Thanks in advance for your time...

P.S.
If all fails I intend to write a routine that does the job in DS Basic code
(the original implementation was written a while back by someone)

Execute command issue

Posted: Tue Jul 03, 2012 3:31 am
by ArndW
My first thought is that the difference might be in the attach point for the process and it might work if you use absolute pathnames. You could check this by adding a "pwd" command to see where your process is attached.