IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

COBOL74 Compile Fails When Adding New Code


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Bill O'Boyle

CICS Moderator


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

PostPosted: Thu Sep 09, 2010 2:08 am
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

Moderator Emeritus


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

PostPosted: Thu Sep 09, 2010 2:37 am
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts run rexx code with jcl CLIST & REXX 15
No new posts Compile rexx code with jcl CLIST & REXX 6
No new posts Adding QMF and SPUFI to the ISPF menu DB2 20
No new posts Sort First/last record of a subset th... DFSORT/ICETOOL 7
No new posts Adding first / last acct numerber to ... DFSORT/ICETOOL 7
Search our Forums:

Back to Top