View previous topic :: View next topic
|
Author |
Message |
kishpra
New User
Joined: 24 May 2010 Posts: 92 Location: Pune
|
|
|
|
Hi,
What are the features of COBOL 4 version?
Also if a program is compiled with COBOL 4 instead of COBOL 3, will it lead to performance improvement?
Thanks. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8697 Location: Dubuque, Iowa, USA
|
|
|
|
Assuming you mean Enterprise COBOL version 4 instead of version 3 when you reference COBOL4 and COBOL 3, you can click on the IBM Manuals link at the top of the page and read up on the changes in 4.1 as well as 4.2. A brief review indicates performance improvements only to XML PARSE and XML GENERATE, so it is unlikely that a COBOL program not using these verbs will show any difference in perfromance whether compiled in 3.4 or 4.1 or 4.2 or .... |
|
Back to top |
|
|
kishpra
New User
Joined: 24 May 2010 Posts: 92 Location: Pune
|
|
|
|
Thanks.
But I have read that there are some functions which can improve the mathetical operations in COBOL 4. Can anyone give me details on the added featues in COBOL 4 alongwith their advanatges? |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
Quote: |
Can anyone give me details on the added featues in COBOL 4 alongwith their advanatges? |
any reason that we should rewrite the manuals ? |
|
Back to top |
|
|
Ed Goodman
Active Member
Joined: 08 Jun 2011 Posts: 556 Location: USA
|
|
|
|
kishpra wrote: |
Thanks.
But I have read... |
Where did you read that? |
|
Back to top |
|
|
Akatsukami
Global Moderator
Joined: 03 Oct 2009 Posts: 1788 Location: Bloomington, IL
|
|
Back to top |
|
|
kishpra
New User
Joined: 24 May 2010 Posts: 92 Location: Pune
|
|
|
|
Thanks for the information. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8697 Location: Dubuque, Iowa, USA
|
|
|
|
You keep using the term "COBOL 4". Terminology is critical in IT, where similar terms may mean very different things. On the mainframe, it is "Enterprise COBOL version 4" -- NOT "COBOL 4". If you Google "COBOL 4", you will get back links to Micro Focus COBOL and Fujitsu netCOBOL as well as Enterprise COBOL. So if you use "COBOL 4" then you need to specify WHICH compiler you are referencing.
And IBM manuals are pretty thorough at providing information about what changed from release to release. If you don't find anything in the manual about mathematical functions being improved by a given release of the COBOL compiler, then it is a pretty safe bet to say that those functions will run the same from release to release. Detailed testing may find small differences in CPU time, but that could be due to external factors rather than language changes. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
Also if a program is compiled with COBOL 4 instead of COBOL 3, will it lead to performance improvement? |
What lead to this becoming a issue/concern?
In most (every one i'm familiar with) organizations, software is upgraded by management decision rather than performance considerations. Quite often the decision is based on keeping the software reasonabley current or to make some new feature(s) available.
If there is some problem calculation code, suggest it be placed in a test module for investigation. Look at the expanded code and understand the generated code. Look at the variables used - they may not be the best "PICTURE" for these fields.
If you have something more specific, someone may have a suggestion. |
|
Back to top |
|
|
|