unix commands in sequential file

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
jhansi
Participant
Posts: 33
Joined: Sat May 26, 2012 4:56 am

unix commands in sequential file

Post by jhansi »

which type of unix commands can i use in sequential file filter condition?
i tried sed
jhansi
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Anything that outputs to 'standard out'.
-craig

"You can never have too many knives" -- Logan Nine Fingers
jhansi
Participant
Posts: 33
Joined: Sat May 26, 2012 4:56 am

Post by jhansi »

can u explain me in detail?
jhansi
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Well... pretty standard stuff. Any command that writes its output to 'the screen' is writing to stdout. That output stream is what the stage consumes when the filter option is enabled.
-craig

"You can never have too many knives" -- Logan Nine Fingers
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

... and when you specify a Filter Command, the stage reads that stdout file unit rather than whatever is mentioned in the File property.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Which I did mention, just without the "rather than" part. Thanks. :wink:
-craig

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