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
 
Linkage Editor control statements

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
Mistermind
Warnings : 2

New User


Joined: 08 Feb 2008
Posts: 46
Location: Dublin

PostPosted: Tue Mar 17, 2009 11:40 pm    Post subject: Linkage Editor control statements
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

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Wed Mar 18, 2009 12:59 am    Post subject:
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: 260

PostPosted: Wed Mar 18, 2009 5:56 pm    Post subject:
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: 1004
Location: Dublin, Ireland / Edinburgh, Scotland

PostPosted: Wed Mar 18, 2009 6:04 pm    Post subject:
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
Warnings : 2

New User


Joined: 08 Feb 2008
Posts: 46
Location: Dublin

PostPosted: Thu Mar 19, 2009 1:15 am    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Control-M restart instruction sonaliingle CA Products 2 Tue Nov 28, 2017 5:05 pm
No new posts PLI %IF statements Pedro PL/I & Assembler 1 Tue Sep 19, 2017 12:06 am
This topic is locked: you cannot edit posts or make replies. Extract all "IF" Statements... Adarsh Damodaran CLIST & REXX 1 Wed Sep 06, 2017 9:28 am
This topic is locked: you cannot edit posts or make replies. Cobol GUI (like Editor) Kala Mainframe COBOL Programming 14 Wed May 10, 2017 12:30 pm
No new posts PA02 - Programmtically control attent... dodithegreat IMS DB/DC 1 Thu Apr 06, 2017 8:33 pm

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