Command Stage Query

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
sumesh.abraham
Participant
Posts: 153
Joined: Thu May 11, 2006 1:52 am
Location: Bangalore

Command Stage Query

Post by sumesh.abraham »

Hi All,

I'm using a command stage and I've specified a command as

Code: Select all

echo "XYZ" > File1.txt
and I've specified the value for Output to file as LogFile1.txt
The Disable output to log checkbox is not checked. Once I run the job, the File1.txt file contains the string XYZ, but LogFile1.txt is empty. Should it contain the output from the command and return code, right? Why is that not happening? Any help will be appreciated.

Thanks,
Sumesh
asitagrawal
Premium Member
Premium Member
Posts: 273
Joined: Wed Oct 18, 2006 12:20 pm
Location: Porto

Post by asitagrawal »

Coz there is neither a retrun code nor any output of executing this command...
It is echoing your text , which has been piped to file, FILE1.TXT, which is correct...


Try executing the command on the command prompt !!
Share to Learn, and Learn to Share.
sumesh
Participant
Posts: 2
Joined: Fri Aug 25, 2006 7:05 am

Post by sumesh »

Asit,

Thanks for the clarification.

Thanks,
Sumesh
Post Reply