Page 1 of 1

Shell command new line issue

Posted: Thu Jul 15, 2010 1:26 am
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?

Posted: Thu Jul 15, 2010 2:07 am
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 ?

Posted: Thu Jul 15, 2010 5:24 am
by chulett
Post your syntax and (for grins) specify your operating system.