On 3 Aug 2012 08:41:24 -0700, [email protected] (Charles Mills) wrote: >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? > If the REMARKS verb is commented out (* in column 7) all other lines related to it have to be commented out. REMARKS used to be a separate entity in the IDENTIFICATION DIVISION. It may be that REMARKS must be commented out because it is no longer in the standard.
The only time this code has to be changed is on recompilation for other purposes so you will be going through the processes anyway. Clark Morris > > >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
