Change mode from Unix to DOS

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
sureshdsx1001
Participant
Posts: 11
Joined: Fri Sep 21, 2007 2:23 am

Change mode from Unix to DOS

Post by sureshdsx1001 »

Hi All,

I created a sequential file with Line Termination set as Unix Style(LF) in Stage-General tab of the sequential file stage.

Next I use unix script to fragment this file based upon some bussiness rules to prepare fragmented out files. These files are currently in same format (Unix Style))

My requirement to is prepare these fragmented output files in DOS style using the above Unix only. Please advice how can I achieve this?

Regards
Suresh.
Suresh G Sampat
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Change the line terminator in the Sequential File stage to "DOS style".
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
iDomz
Participant
Posts: 81
Joined: Wed Jul 25, 2007 5:25 am
Location: London

Post by iDomz »

If you need to do it in Unix script ,

use unix2dos command
or use tr -d \r filename
Post Reply