Custom entry name for LOAD macro

High Level Assembler(HLASM) for MVS & VM & VSE
hadnochoice
Posts: 1
Joined: Fri Mar 15, 2019 9:00 pm
Skillset: Db2, HLASM, C/C++
Referer: Just Googled

Custom entry name for LOAD macro

Postby hadnochoice » Fri Mar 15, 2019 9:04 pm

I have the module to be loaded, but its name differs due to some parameter. How can LOAD macro be used with dynamically changing entry name?

steve-myers
Global moderator
Posts: 2105
Joined: Thu Jun 03, 2010 6:21 pm
Skillset: Assembler, JCL, utilities
Referer: zos.efglobe.com

Re: Custom entry name for LOAD macro

Postby steve-myers » Sat Mar 16, 2019 5:36 am

Yes.

As you know, something like LOAD EP=XYZ can only load module XYZ.

However, you can specify the name of an 8 byte character variable.

Code: Select all

         LOAD  EPLOC=VARIABLE
         ...
VARIABLE DC    CL8'XYZ'

Your code can change the contents of VARIABLE to any load module name the program requires.


  • Similar Topics
    Replies
    Views
    Last post