Operating System - HP-UX
1821247 Members
2761 Online
109632 Solutions
New Discussion юеВ

Micro Focus Cobol - writing cr & lf

 
SOLVED
Go to solution
Tirza Kiesler
Occasional Advisor

Micro Focus Cobol - writing cr & lf

Can anyone advise how to write cr & lf characters in a file?
It should be equivalent to this code in MPE COOBOLII:
01 CRLF.
05 DTL-CCTL PIC X VALUE %15.
05 DTL-LF PIC X VALUE %12.
MOVE CRLF TO MY-REC (401:2).

Thanks in advance, Tirza
4 REPLIES 4
harry d brown jr
Honored Contributor
Solution

Re: Micro Focus Cobol - writing cr & lf

01 CRLF.
05 DTL-CCTL PIC X VALUE X'0D'.
05 DTL-LF PIC X VALUE X'0A'.

live free or die
harry d brown jr
Live Free or Die
Tirza Kiesler
Occasional Advisor

Re: Micro Focus Cobol - writing cr & lf

Hello Harry,

Many thanks for your quick reply.

I tried your suggestion, but the user still complains that these signs do not end the line. Do you have other recommendation? What about the organization clause (I tried line sequential)?

Thanks,

Tirza
harry d brown jr
Honored Contributor

Re: Micro Focus Cobol - writing cr & lf

What are the users doing to verify that CR & LF aren't showing up?

And what kind of file are they writing to?

What kind of WRITE statement are they using?

Help me, I'm having COBOL flash-backs (I wonder if this is like an acid trip?) :-)


live free or die
harry d brown jr
Live Free or Die
Tirza Kiesler
Occasional Advisor

Re: Micro Focus Cobol - writing cr & lf

Hi Harry,

I tried you advise again, this time without any organization clause.

Now the file is OK, and I am very happy. Now I'll try to give points.

Thanks a lot,

Tirza