Hi there ,
I don't know how the C preprocessor works exactly , but break the problem
into specific components. Try taking the preprocessor out of the picture
for the time being , and see if you can get a clean compile on the base
COBOL
code first with a COBOL compiler , and then add your functionality and
modules
to the program in stages.
Here are the rules for continuing an Alphanumeric literal in COBOL 74 /
COBOL 85 :
1) Every continuation line must have a hyphen in Column 7
2) The data on every line except the last one must have data up to and
including the 72nd
column
3) Every continuation line must start with inverted commas
4) Closing inverted commas appear only at the end of the literal and not at
the end of every line
5) The continuation line may start anywhere in area B of your coding form
layout
6) The maximum size for an alphanumeric literal is 160 bytes
Let me know if you are still having hassles. You can get hold of me at
[EMAIL PROTECTED]
Regards , Jason
----- Original Message -----
From: "VIPIN CHAND DURGAPAL" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, October 23, 2002 10:08 AM
Subject: compilation problem!!!
> Hi,
> The below line is from a cobol program.
>
> 01 LINE-HDR.
> 05 FILLER PIC X(132) VALUE '---------------- ----
> - '------ --------- -------- ----------- --------------------
> - ' ------------------- -------------------'.
>
> Before giving our cobol program to procobol compiler, we are giving
> it C preprocessor to do the required macro substituion if any in the
> program.
>
> The preprocessor we are using is 'cpp' on redhat linux 7.1.
> The above sample lines represents a continuation line as supported
> by cobol.
> The C preprocessor while preprocessing this line of code is giving an
> error saying
> "missing terminating ' character"
> "possible start of unterminated string literal"
> "C Pre Processor Error "
>
> Are their any compilation parameters in order to remove these
> errors.
>
> Thanks
> Vipin.
>
>
>
> _______________________________________________
> Seawolf-list mailing list
> [EMAIL PROTECTED]
> https://listman.redhat.com/mailman/listinfo/seawolf-list
_______________________________________________
Seawolf-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/seawolf-list