Creating the list of macros for the UCLIN step is a completely manual process - I don't know a way to automatically do this and skip the UCLIN step. I would be interested in hearing if someone else has a better idea!

You can use additional JCLIN to avoid the UCLIN. Specifically, if you include an assembly step in your JCLIN that contains the assembler source inline, then SMP/E will scan the assembler source looking for macros and create the GENASM subentries directly.

Expanding upon Brian's example:

++USERMOD(HASPUEX)  REWORK(2008159).
++VER (Z038) FMID(HJE7740).
++JCLIN.
//ASSEM01  EXEC PGM=IEV90
//SYSPUNCH DD DSN=&&PUNCH(HASPUEX)
//SYSIN    DD *
(complete assembler source code containing macro references here)
/*
//LINK0002 EXEC PGM=IEWBLINK,PARM=('OPTIONS(GENOPTS)')
//GENOPTS  DD *
                  RENT,REUS,REFR,NCAL
//SYSLMOD  DD DSN=SYS1.SHASLNKE
//SYSLIN   DD *
 INCLUDE AHASMOD(HASPUEX)
 NAME  HASPUEX
++SRC  (HASPUEX) SYSLIB(SHASSRC) DISTLIB(AHASSRC) .
(assembler source code here)

Any macro references found in the inline assembler source will cause GENASM subentries to be created in the corresponding MAC entries.

Example #2 in the JCLIN chapter of the SMP/E Commands book also touches upon this topic, albeit that example is much broader. Specifically in that example check out the Assembler step A1.

Kurt Quackenbush -- IBM, SMP/E Development

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to