How to control CR and LF codes

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
gpbarsky
Participant
Posts: 160
Joined: Tue May 06, 2003 8:20 pm
Location: Argentina

How to control CR and LF codes

Post by gpbarsky »

Hi out there.

Using the OpenSeq/WriteSeq/CloseSeq statements, how can I control the writing of CR and LF codes ?

The file I'm gneerating in DS, then is sent to SAP, and in SAP appears with strange characters "#". I guess that this is not the real "#", and it is a CHAR(10) or CHAR(12) character, but I need to avoid the writing of the LF code.

Do you know how can I do this ?

Thanks in advance.

[;)]
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

You may very well be fine with your CR/LF codes, that's pretty automatic and your method of transferring the file should handle any CR/LF conversion duties that are needed.

How are you sending the file to SAP? The strange '#' characters are also the default 'padding' character for DataStage and it can sneek them in sometimes when you don't want them. So, depending on *exactly* what you are doing, it could be adding them for you... not via xxxSeq statements, but Sequential stages in jobs specifically.

-craig
Post Reply