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
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
open-cobol-list mailing list
address@hidden
https://lists.sourceforge.net/lists/listinfo/open-cobol-list