Line Terminators
Posted: Tue Jan 11, 2005 8:10 am
I have created a file where one of the fields is a CDU Number which we have formatted to a PIC COMP field. Within some of these values will be the EBCDIC value of 10 (<LF>). I have handled this within DS by changing the "Contains terminators" value within the file to YES for the relevant field.
However, the problem lies when we transfer the file by Connect Direct to the mainframe and it doesn't ignore the <LF>, rather it actions it and splits the corresponding line into two.
I have seen other topics on the Forum where files are being received on the mainframe that contain this character and there has been advice to use Ereplace to change the <LF> character to something else.
Is it possible to do this within DS so that when my file is transferred to the mainframe, the lines are not corrupted by the <LF> but if I then convert the PIC COMP field back into an integer, it will be the same as what I started with ?
Cheers
Jez T
However, the problem lies when we transfer the file by Connect Direct to the mainframe and it doesn't ignore the <LF>, rather it actions it and splits the corresponding line into two.
I have seen other topics on the Forum where files are being received on the mainframe that contain this character and there has been advice to use Ereplace to change the <LF> character to something else.
Is it possible to do this within DS so that when my file is transferred to the mainframe, the lines are not corrupted by the <LF> but if I then convert the PIC COMP field back into an integer, it will be the same as what I started with ?
Cheers
Jez T