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
 

 

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: 258

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

Active Member


Joined: 08 May 2006
Posts: 995
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
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
This topic is locked: you cannot edit posts or make replies. How to use 2 input files in control c... Gunapala CN DFSORT/ICETOOL 23 Thu Oct 13, 2016 3:42 pm
No new posts Symbolic Parameters in SYSIN DD state... madishpa DFSORT/ICETOOL 3 Mon Jun 27, 2016 6:23 pm
No new posts Control-M manuals JPVRoff All Other Mainframe Topics 0 Fri May 20, 2016 11:15 am


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