Creating a text file in DS

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

In an Execute Command stage do:

echo "Production ran successfully" > YourFilename
-craig

"You can never have too many knives" -- Logan Nine Fingers
Seyed
Participant
Posts: 74
Joined: Wed Apr 14, 2010 7:25 am
Location: Oklahoma City

Post by Seyed »

chulett wrote:In an Execute Command stage do:

echo "Production ran successfully" > YourFilename ...
Craig,
I appreciate your input. Would this create the file and then can this file be deleted at the end of job sequence in our development environment?

Thanks again,

Seyed
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Yes & Yes. The DOS command to delete a file is "del" or "erase".
-craig

"You can never have too many knives" -- Logan Nine Fingers
Seyed
Participant
Posts: 74
Joined: Wed Apr 14, 2010 7:25 am
Location: Oklahoma City

Post by Seyed »

chulett wrote:Yes & Yes. The DOS command to delete a file is "del" or "erase". ...
Craig,
Thank you so much. Your input will help our organization a great deal.

Seyed
Post Reply