Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Regd Migration in compiler option

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
sundeep_rajasekaran
Warnings : 1

New User


Joined: 18 Feb 2005
Posts: 14

PostPosted: Fri Feb 18, 2005 1:55 pm    Post subject: Regd Migration in compiler option
Reply with quote

Our system is migrated to some latest version of OS390. The latest one is not supporting pgms with CMPR2 Options. so we have to migrate all the pgms with CMPR2 to NOCMPR2. We would like to know what are major code changes required for this. For example, with nocmpr2, variable length files needs to be properly defined with its length.
Back to top
View user's profile Send private message

priya

Moderator


Joined: 24 Jul 2003
Posts: 568
Location: Bangalore

PostPosted: Fri Feb 18, 2005 5:19 pm    Post subject:
Reply with quote

Code:
Enterprise COBOL provides COBOL 85 Standard support whereas VS COBOL II Release 2 provided COBOL 74 Standard support (with some 85 Standard features added in). The
implementation of the COBOL 85 Standard caused some language elements to behave in a manner that differs from the implementation of the COBOL 74 Standard.
 
Beginning with VS COBOL II Release 3.0, you could choose COBOL 85 Standard behavior (without the Intrinsic Function module) by using NOCMPR2, or the COBOL 74 Standard
behavior by using the CMPR2 compiler option. The CMPR2 option provided COBOL 74 Standard behavior as implemented by VS COBOL II Release 2, as well as nonstandard Release 2
extensions now implemented in the COBOL 85 Standard. The NOCMPR2 option provided COBOL 85 Standard-conforming behavior and IBM extensions. This same mechanism was
provided by IBM COBOL as an aid to allow delaying the upgrade from VS COBOL II Release 2 level code to COBOL 85 Standard level code. In Enterprise COBOL, this delay is no longer
available. Programs must be at the COBOL 85 Standard level to compile with Enterprise COBOL.
 
When referring to VS COBOL II Release 3 or later and IBM COBOL, the following terms have been defined:
 
CMPR2
          We use CMPR2 to refer to the language and behavior of programs compiled and run with:
 
             VS COBOL II Release 2
             VS COBOL II Release 3 or 4 with the CMPR2 compiler option
             IBM COBOL with the CMPR2 compiler option.
 
NOCMPR2
          We use NOCMPR2 to refer to the language and behavior of programs compiled and run with:
 
             VS COBOL II Release 3 or 4 with the NOCMPR2 compiler option
             IBM COBOL with the NOCMPR2 compiler option
             Enterprise COBOL
 
FLAGMIG
          We use FLAGMIG to refer to the use of a pre-Enterprise COBOL compiler (VS COBOL II or IBM COBOL) that supports the CMPR2 and FLAGMIG options.
 
 
 
Note:  To aid you with migration to Enterprise COBOL, use a previous COBOL compiler that supports FLAGMIG and CMPR2 to flag the statements that need to be converted.
 
The language elements listed below are affected by the CMPR2/NOCMPR2 compiler option. The differences are explained in the sections that follow.
 
ALPHABET clause of the SPECIAL-NAMES paragraph
ALPHABETIC class
CALL . . . ON OVERFLOW
Comparisons between scaled integers and nonnumerics
COPY ... REPLACING statements using non-COBOL characters
COPY statement using national extension characters
File status codes
Implicit EXIT PROGRAM
PERFORM return mechanism
PERFORM ... VARYING ... AFTER
PICTURE clause with "A"s and "B"s
PROGRAM COLLATING SEQUENCE
READ INTO and RETURN INTO
RECORD CONTAINS n CHARACTERS
Reserved words
SET . . . TO TRUE
SIZE ERROR on MULTIPLY and DIVIDE
UNSTRING operand evaluation
UPSI switches
Variable-length group moves
Back to top
View user's profile Send private message
sundeep_rajasekaran
Warnings : 1

New User


Joined: 18 Feb 2005
Posts: 14

PostPosted: Fri Feb 18, 2005 6:03 pm    Post subject: Thanks!
Reply with quote

Thanks priya, that was really helpful
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts DFSORT - Overriding default option TU... Steve Ironmonger DFSORT/ICETOOL 3 Tue Apr 04, 2017 3:54 pm
No new posts Who can recomend or to know a PL1 com... Miguel Fernandez DB2 0 Tue Feb 14, 2017 1:42 pm
No new posts BWO option in VSAM blayek CICS 3 Sat Nov 05, 2016 10:47 am
No new posts Regarding COBOL Stored Procedure opti... selvamsrinivasan85 DB2 4 Fri Nov 04, 2016 8:57 pm
No new posts Any docs / links for isub- cobol comp... SRICOBSAS COBOL Programming 4 Fri Aug 26, 2016 2:35 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us