Page 1 of 1

How to control CR and LF codes

Posted: Thu May 15, 2003 12:56 pm
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.

[;)]

Posted: Thu May 15, 2003 2:01 pm
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