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 How to Capture the Max return code of... anilkumar922 All Other Mainframe Topics 0 Thu Jan 12, 2017 12:02 pm
This topic is locked: you cannot edit posts or make replies. Calling REXX code from ISPF panel sanchita dey TSO/ISPF 4 Mon Jan 02, 2017 5:13 pm
No new posts PL/I code tuning/Performance improvement Virendra Shambharkar PL/I & Assembler 4 Mon Dec 05, 2016 11:57 am
No new posts What is the code in CLIST to enable t... jackzhang75 CLIST & REXX 1 Fri Dec 02, 2016 3:02 am
No new posts IDEAL - Code Retrieval yugendran CA Products 0 Fri Nov 25, 2016 3:27 pm


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