Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

Example: Modifying a link load module

&pagelevel(3)&pagelevel
/start-lmsconv                                                             1.
%  LMC0310 LMSCONV VERSION '<version>' STARTED
//modify-logging-parameters logging=*maximum                               2.
//open-library library=tst.bib,mode=*update                                3.
//modify-element (element=tst.ele,type=l)                                  4.
//modify-modification-defaults csect=test                                  5.
//add-text-modification address=x'e0',
       new-contents='ZZ'(old-contents='aa')                                6.
//end-modify                                                               7.
INPUT  LIBRARY= :2OSX:$USER.TST.BIB
OUTPUT LIBRARY= :2OSX:$USER.TST.BIB
INPUT  ELEMENT= (L)TST.ELE/031(0001)/<date>
OUTPUT ELEMENT= (L)TST.ELE/031(0002)/<date>
TEXT-ADR:            000000E0
TEXT BEFORE CHANGE:  a a
8181
TEXT AFTER  CHANGE:  Z Z
E9E9
CORRECT (L)TST.ELE/031(0001)/<date> AS 
(L)TST.ELE/031(0002)/<date> , OUTPUT REPLACED 
//END                                                                      8.
  1. LMSCONV is called.

  2. The entire LMSCONV log is output.

  3. The TST.BIB library is assigned. It must be opened for reading and writing; otherwise, no modification of the link load module is possible.

  4. The link load module TST.ELE is to be modified.

  5. This substatement specifies the CSECT to be corrected.

  6. This substatement replaces the original text “aa” at address E0 of the CSECT TEST with the replacement text 'ZZ'.

  7. The input of the substatement is terminated. The substatements are then executed.

  8. LMSCONV is terminated.