Page 1 of 1

creating sequential file in dos mode

Posted: Fri Sep 21, 2007 8:46 am
by landaghaar
When I create files in DataStage, and opening them with notepad, all are in one line, they are in unix format.

is there a way to write in dos format? with carriage return and line feed characters?

it can be done in server but not in parallel. or at least i couldnt find the option.

Posted: Fri Sep 21, 2007 9:00 am
by asorrell
In the Sequential File stage, Format tab, Add "Record Delimiter String" and set it to "DOS Format". It will automatically remove "Record Delimiter = UNIX Newline" if it is present.

The reason it is a "string" instead of just a delimiter is that the DOS end of line has a carriage return and a line feed, as opposed to UNIX which just has a line feed. That's why when you view a DOS file in UNIX you see a visible ^M at the end of the line.

Posted: Fri Sep 21, 2007 3:23 pm
by ray.wurlod
That's just Notepad. Use Word; it can "translate" the UNIX line terminators. Maybe WordPad can too, I've never tried it. I usually use Word (or UltraEdit) because I usually want to see line numbers.