Upgrading to COBOL 6.2.

OS/VS COBOL, COBOL II, Enterprise COBOL for z/OS. OpenCOBOL and OOCobol.
Post Reply
Dino
Registered Member
Posts: 52
Joined: Tue Jun 18, 2013 12:12 am

Upgrading to COBOL 6.2.

Post by Dino »

Hi,

We're upgrading to COBOL 6.2, has someone done this before and would like to share any cheat sheet?
User avatar
Anuj Dhawan
Founder
Posts: 2802
Joined: Sun Apr 21, 2013 7:40 pm
Location: Mumbai, India
Contact:
India

Re: Upgrading to COBOL 6.2.

Post by Anuj Dhawan »

What is the current version of your COBOL?
Thanks,
Anuj

Disclaimer: My comments on this website are my own and do not represent the opinions or suggestions of any other person or business entity, in any way.
Dino
Registered Member
Posts: 52
Joined: Tue Jun 18, 2013 12:12 am

Re: Upgrading to COBOL 6.2.

Post by Dino »

COBOL 4.2
User avatar
Robert Sample
Global Moderator
Global Moderator
Posts: 1895
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
United States of America

Re: Upgrading to COBOL 6.2.

Post by Robert Sample »

There really are no issues with upgrading COBOL. You look at which site-level tables are in use currently (such as IGYDOPT or IGYCOPT), run user mods to replicate them (with the changes to the parameters for the new release) in the new COBOL, install the new compile procedures from SIGYPROC, and run a few test compiles. It is usually a good idea to compare compile times, because sometimes the compiler's new release may use more memory or CPU time than the old release.
Dino
Registered Member
Posts: 52
Joined: Tue Jun 18, 2013 12:12 am

Re: Upgrading to COBOL 6.2.

Post by Dino »

We faced some music in production with COBOL 6.2, like:

Code: Select all

HIGH ORDER DIGIT POSITIONS IN THE SENDER MAY BE TRUNCATED THE SENDER MAY BE TRUNCATED IN THE MOVE TO RECEIVER "SRR678-D01-INV-TOTAL-AMT (NUMERIC-EDITED)

Code: Select all

HIGH ORDER DIGIT POSITIONS IN THE SENDER MAY BE TRUNCATED THE SENDER MAY BE TRUNCATED IN THE MOVE TO RECEIVER "SRR678-D01-CUST-PAID-AMT  (NUMERIC-EDITED)
Are there some references of errors like these?
User avatar
Robert Sample
Global Moderator
Global Moderator
Posts: 1895
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
United States of America

Re: Upgrading to COBOL 6.2.

Post by Robert Sample »

Those are not errors and you are incorrect in referring to them as such. They are warnings telling you that truncation may occur (or did occur if they are run-time messages - your post is not clear about where the messages show up). Truncation will only occur when the sending variable has more significant digits than the receiving variable. Hence truncation can only be determined at run-time, although potential truncation can be identified during the compile.
Dino
Registered Member
Posts: 52
Joined: Tue Jun 18, 2013 12:12 am

Re: Upgrading to COBOL 6.2.

Post by Dino »

Thanks Robert.

But I don't recall that we observed them with COBOL 4.2. I was looking for a document which can tell what was not considered as warning in COBOL 4.2 but is considered in COBOL 6.2 but I did not find.
User avatar
lchui
New Member
Posts: 8
Joined: Sun Sep 13, 2020 10:28 pm

Re: Upgrading to COBOL 6.2.

Post by lchui »

Dino wrote: Sun Dec 20, 2020 11:14 am Thanks Robert.

But I don't recall that we observed them with COBOL 4.2. I was looking for a document which can tell what was not considered as warning in COBOL 4.2 but is considered in COBOL 6.2 but I did not find.
Have you tried the COBOL Migration Portal
https://www.ibm.com/support/knowledgece ... ortal.html

Hope this helps.
Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Return to “IBM COBOL, GnuCOBOL (OpenCOBOL), OOCobol.”