Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Forum Index
 
Register
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
COBOL74 Compile Fails When Adding New Code
Goto page Previous  1, 2
 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2504
Location: Atlanta, Georgia, USA

PostPosted: Thu Sep 09, 2010 2:08 am    Post subject: Reply to: COBOL74 Compile Fails When Adding New Code
Reply with quote

Quote:
What are your thoughts on converting to COBOL85? I was doing some experimenting and created a COBOL85 program double the size of my problem program by duplicating code and compiled it with no issues. Any thoughts as to why that would be. Does the newer compiler use less memory? The load module is siginificantly smaller as well.

COBOL 85 is actually COBOL II (not sure what it's known by in VSE). However, converting from ANSI 68/74 Batch to 85 isn't too bad (CICS is more involved).

You need to replace EXAMINE, TRANSFORM with INSPECT. If you're using the CURRENT-DATE and TIME-OF-DAY Special Registers, they can be substituted with their equivalent ACCEPT Verbs or by Calling LE Callable routines (providing LE is installed when you upgrade), for example "CEELOCT" will return a Date/Time in a format of CCYYMMDDHHMMSSMMM (MMM is milliseconds).

As soon as you compile the program with the newer compiler, errors should jump out like a cockroach with a hot foot. icon_wink.gif

Bill
Back to top
View user's profile Send private message

dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19254
Location: Inside the Matrix

PostPosted: Thu Sep 09, 2010 2:37 am    Post subject:
Reply with quote

Hello,

Suggest you upgrade to a currently supported compiler rather than a compiler that is also out of date. . .

And (as Bill mentioned) CICS code may lead to additional discoveries.

fwiw
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
Goto page Previous  1, 2
Page 2 of 2

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Adding FIND to ISPF Panel display of ... Harold Barnes TSO/ISPF 3 Mon Oct 07, 2019 5:46 pm
No new posts proc step return code to override in ... Aaryaa JCL & VSAM 3 Tue Aug 20, 2019 4:32 pm
No new posts Difference between GE and GB return c... Poha Eater IMS DB/DC 8 Fri Jul 12, 2019 12:59 pm
No new posts S0C4 Reason Code 10 cz016m COBOL Programming 1 Thu May 02, 2019 7:13 am
No new posts Need help in adding Header to records senthamizh SYNCSORT 1 Thu Mar 07, 2019 7:55 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us