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

code posrtion retirement


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
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
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: 2501
Location: Atlanta, Georgia, USA

PostPosted: Tue Mar 30, 2010 11:57 pm
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: 2146
Location: At my coffee table

PostPosted: Wed Mar 31, 2010 12:17 am
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 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 REXX code to expand copybook in a cob... CLIST & REXX 2
No new posts VSAM return code 23 - for a Random read COBOL Programming 4
No new posts Monitoring production job progress. N... JCL & VSAM 4
Search our Forums:

Back to Top