Shell command new line issue

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
harryhome
Participant
Posts: 112
Joined: Wed Oct 18, 2006 7:10 am

Shell command new line issue

Post by harryhome »

Hi

I have after routine , Exec Shell where I am try to concatenate 3 files.

When I concatenate these files using datastage after routine , there is no new line character when data between two line concatenate. So the data from new starts on the same line as old file data ends.

where as on command prompt when I actually run this command , new line character does appear.

Is there any special attention we need to give while writting command in after routine?
Sainath.Srinivasan
Participant
Posts: 3337
Joined: Mon Jan 17, 2005 4:49 am
Location: United Kingdom

Post by Sainath.Srinivasan »

What command did you use for concatenation ? The default 'cat' ?

Is the output written to the stdout or some file ?

What is your expected output ?
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Post your syntax and (for grins) specify your operating system.
-craig

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