Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 2504
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 Speed-up/reduce CPU use of code prino PL/I & Assembler 0 Tue Sep 26, 2017 12:05 am
This topic is locked: you cannot edit posts or make replies. how to code for GDG in Rexx cvnlynn CLIST & REXX 13 Wed Aug 09, 2017 9:13 pm
This topic is locked: you cannot edit posts or make replies. rexx code to create a ps file Bharath Vikraman CLIST & REXX 4 Mon Aug 07, 2017 10:30 am
No new posts I want to retire TRX and use only Rex... Abhinav Sharma CLIST & REXX 6 Sat Jul 29, 2017 2:53 am
No new posts UNIT=AFF for Easytrieve code gandikk JCL & VSAM 7 Wed Jul 12, 2017 11:42 pm

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