A fast test with Enterprise COBOL 3.4.1 got an error message:
1PP 5655-G53 IBM Enterprise COBOL for z/OS 3.4.1 ABEND0C7 Date
08/03/2012 Time 10:48:07 Page 5
LineID PL SL
----+-*A-1-B--+----2----+----3----+----4----+----5----+----6----+----7-|--+----8
Map and Cross Reference
0 000056 ' IS THIS A COMMENT?
'
==000056==> IGYDS1089-S "' IS THIS A COMMENT?
'" was
invalid. Scanning was resumed at the next area "A"
item, level-number,
or the start of the next clause.
And my "gut feeling" is that such a construct is indeed invalid. What are a few
of the lines above these lines?
--
John McKown
Systems Engineer IV
IT
Administrative Services Group
HealthMarkets(r)
9151 Boulevard 26 * N. Richland Hills * TX 76010
(817) 255-3225 phone *
[email protected] * www.HealthMarkets.com
Confidentiality Notice: This e-mail message may contain confidential or
proprietary information. If you are not the intended recipient, please contact
the sender by reply e-mail and destroy all copies of the original message.
HealthMarkets(r) is the brand name for products underwritten and issued by the
insurance subsidiaries of HealthMarkets, Inc. -The Chesapeake Life Insurance
Company(r), Mid-West National Life Insurance Company of TennesseeSM and The
MEGA Life and Health Insurance Company.SM
> -----Original Message-----
> From: IBM Mainframe Discussion List
> [mailto:[email protected]] On Behalf Of Charles Mills
> Sent: Friday, August 03, 2012 10:41 AM
> To: [email protected]
> Subject: Is this valid COBOL syntax?
>
> Is anyone a COBOL syntax expert? Is the following valid?
> (It's not a trick
> question: there are no obscure PARM= options and nothing
> remarkable precedes
> the fragment below.) It's not an academic question. The code
> is accepted
> without error by the IBM Enterprise COBOL compiler V4.1, but not by a
> proprietary pre-processor, and I'm trying to figure out if
> the code should
> change or if the preprocessor is in error. Changing the code
> is not trivial:
> multiple programs like this, corporate change control
> processes, etc., etc.
>
>
>
> I think it's invalid, that the '.' strings are syntactically-invalid
> character literals. Am I missing something?
>
>
>
> Starting hint: The REMARKS paragraph heading is only a *
> comment and not
> syntactically significant (I think).
>
>
>
> Best viewed in a fixed-width font like Courier. FYI if you
> can't view it
> that way, the leading quote in lines 20-23 is in CC 12 and
> the trailing
> quote in CC 72.
>
>
>
> Card columns:
>
> 1 2 3 6 7
>
> 1234567890123456789012345678901...0123456789012
>
>
>
> 00020 *REMARKS.
>
> 00021 '******************* ************'
>
> 00022 '* VARIOUS COMMENT-LIKE TEXT *'
>
> 00023 '* VARIOUS COMMENT-LIKE TEXT *'
>
>
>
> Thanks for your help.
>
>
>
> Charles
>
>
> ----------------------------------------------------------------------
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to [email protected] with the message: INFO IBM-MAIN
>
>
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN