Re: writing cariage return character
From: JerryMouse (nospam_at_bisusa.com)
Date: 06/11/04
- Next message: Joe Zitzelberger: "Re: Is it possible to use the value of the PROGRAM ID within the source code?"
- Previous message: Robert Wagner: "Re: Memory-mapped video"
- Next in thread: Michael Mattias: "Re: writing cariage return character"
- Maybe reply: Michael Mattias: "Re: writing cariage return character"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 11 Jun 2004 06:58:17 -0500
hpy_awad@yahoo.com wrote:
> My Cobol is RMCOBOL, And I am trying to I write new line into an
> input.fil say my record is :
>
> 01 file-record.
> 02 emp_no pict 9(4).
> 02 filler pict x(2).
> 02 name pict x(20).
> 02 ---writing carraige return character--Howw ???
02 file-crlf pic x(2).
....
MOVE X'0D0A' to file-crlf.
If your SELECT statment contains
ORGANIZATION IS LINE SEQUENTIAL
the compiler will insert these characters for you automatically. In other
words, each record becomes two bytes longer than your FD definition and
these extra two bytes contain 0D0A (carriage return/line feed).
- Next message: Joe Zitzelberger: "Re: Is it possible to use the value of the PROGRAM ID within the source code?"
- Previous message: Robert Wagner: "Re: Memory-mapped video"
- Next in thread: Michael Mattias: "Re: writing cariage return character"
- Maybe reply: Michael Mattias: "Re: writing cariage return character"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|