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
 

 

code posrtion retirement

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

Active User


Joined: 14 Jul 2005
Posts: 105

PostPosted: Tue Mar 30, 2010 11:51 pm    Post subject: code posrtion retirement
Reply with quote

Dear Experts,

A few of the products are not needed in our clisnt business.I got the information that they got obsolete 2-3 years back and probably will never be introducted again.
I see around 50 of cobol porgrams and few of them run during critcal batch update time still have that portion of code in production.

I beleive that there would be no data in production which would ever be meant for that obsolete production code.I am wondering if there could be any benefit to organization in removing those portion of code or atleast making that code as dead by commenting that out.

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

Bill O'Boyle

CICS Moderator


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

PostPosted: Tue Mar 30, 2010 11:57 pm    Post subject: Reply to: code posrtion retirement
Reply with quote

If you compile the program using compile option OPT(FULL), the compiler will produce a listing of all the dead/unreachable code and will exclude it from the object before link-edit.

This option does a good job....

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

Senior Member


Joined: 18 Jul 2007
Posts: 2150
Location: At my coffee table

PostPosted: Wed Mar 31, 2010 12:17 am    Post subject: Re: Reply to: code posrtion retirement
Reply with quote

Bill O'Boyle wrote:
If you compile the program using compile option OPT(FULL), the compiler will produce a listing of all the dead/unreachable code and will exclude it from the object before link-edit.
But if there is a reachable IF THEN PERFORM/GOTO to that code, it will remain...... icon_sad.gif
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 UNIT=AFF for Easytrieve code gandikk JCL & VSAM 7 Wed Jul 12, 2017 11:42 pm
No new posts DB2 Program abending without giving a... rahulgarg14 DB2 7 Mon May 29, 2017 8:10 pm
No new posts Job failing with USER = 4093 REASON C... Pradeepa S ABENDS & Debugging 1 Wed May 17, 2017 3:35 pm
No new posts COBOL Code Parsers and Lineage Establ... balimanja COBOL Programming 2 Tue May 02, 2017 3:30 am
No new posts Cobol upgrade - source code missing f... gthmrj IBM Tools 1 Wed Apr 26, 2017 6:04 pm


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