[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[open-cobol-list] Re: OC issues - number 4
From: |
Sergey Kashyrin |
Subject: |
[open-cobol-list] Re: OC issues - number 4 |
Date: |
Wed Jan 18 12:25:01 2006 |
Roger,
Yes, adding spaces helps.
Initially it's a mainframe programs and mainframe has a fixed record format, so
original program has those spaces.
They've probably been stripped when transfering from mainframe.
But as a matter of fact both Fujitsu and Microfocus are accepting that.
Regards,
Sergey.
----- Original Message -----
From: "Roger While" <address@hidden>
To: <address@hidden>
Cc: <address@hidden>
Sent: Wednesday, January 18, 2006 2:37 PM
Subject: Re: OC issues - number 4
Let me guess - The line with the VALUE is immediately
terminated after the apostrophe with a new-line
and/or the following line is also terminated with a new-line
immediately after the apostrophe.
(At least BOTH are true when doing copy/paste from the post).
This is then invalid.
ie. The apostrophes would concatanate and be interpreted as
one occurrence as per Cobol rules.
Roger
IDENTIFICATION DIVISION.
PROGRAM-ID. ztest INITIAL.
ENVIRONMENT DIVISION.
DATA DIVISION.
WORKING-STORAGE SECTION.
01 A.
10 FILLER PIC X(78) VALUE '
- '
- ' '.
PROCEDURE DIVISION.
DISPLAY 'A=' A ';'.
GOBACK.
Roger