redirecting the execute command output

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
dspxlearn
Premium Member
Premium Member
Posts: 291
Joined: Sat Sep 10, 2005 1:26 am

redirecting the execute command output

Post by dspxlearn »

Hi,

Can we redirect the output of the execute command stage to a file inside the stage itself?

Below is the inputs to the execute command stage:

Code: Select all

command: sed -n
parameters: 1,10p /tmp/source.txt > testfile.txt
When the job runs no file is being created. If don't send it to a file, i could see the output correctly in the job log.
Thanks and Regards!!
dspxlearn
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Where are you looking for the file? :wink:
-craig

"You can never have too many knives" -- Logan Nine Fingers
dspxlearn
Premium Member
Premium Member
Posts: 291
Joined: Sat Sep 10, 2005 1:26 am

Post by dspxlearn »

Thanks Craig!!

I must mark this thread as resolved asap.
Else, i will get 'Welcome Aboard" replies. :oops:
Thanks and Regards!!
dspxlearn
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

No worries. :wink:

For the record, relative paths are relative to the 'current working directory' of the job that creates them, so that means the path starts from the job's Project directory.
-craig

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