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

Linkage Editor control statements


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Mistermind

New User


Joined: 08 Feb 2008
Posts: 46
Location: Dublin

PostPosted: Tue Mar 17, 2009 11:40 pm
Reply with quote

If a submodule is stuck inside a loadmodule,
it is possible to relinkedit and replace it or delete it using a control statement.

Does anyone remember the syntax, or have a link to the IBM manual?
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: Wed Mar 18, 2009 12:59 am
Reply with quote

Hello,

How did this module get "stuck" icon_confused.gif

I know of no way to simply delete things from an existing linkedited load module - sounds like a very bad thing to me. . .

Depending on just what is going on, i'd suggest you re-link at least the caller and the called modules and in the caller use a dynamic call rather than a static call.
Back to top
View user's profile Send private message
nevilh

Active User


Joined: 01 Sep 2006
Posts: 262

PostPosted: Wed Mar 18, 2009 5:56 pm
Reply with quote

You can use the existing loadmodule as input to the linkage editor and specify a REPLACE parameter to delete the csect that is no longer required (see manual MVS Program Management: User's Guide and Reference)
Back to top
View user's profile Send private message
Garry Carroll

Senior Member


Joined: 08 May 2006
Posts: 1193
Location: Dublin, Ireland

PostPosted: Wed Mar 18, 2009 6:04 pm
Reply with quote

As suggested, the REPLACE control card causes the named csect(s) to be deleted from the load module input to the linkedit step. Any REPLACE'd csect(s) in the SYSLIB concatenation of the linkedit step will then be used in resolving the reference(s).

Garry.
Back to top
View user's profile Send private message
Mistermind

New User


Joined: 08 Feb 2008
Posts: 46
Location: Dublin

PostPosted: Thu Mar 19, 2009 1:15 am
Reply with quote

Well done.

Any REPLACE not followed by (replacement) will be checked by the linkage editor whether that Csect is in use, if not it is deleted, plus all other NAMED csects inside the aforesaid loadmodule. Used that way REPLACE performa a spring clean.

The scope of the REPLACe covers only the INCLUDE immediately following.
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
No new posts Using Dynamic file handler in the Fil... COBOL Programming 2
No new posts Zunit Test case editor error Testing & Performance 4
No new posts Help Control-R IBM Tools 2
Search our Forums:

Back to Top