I was not aware of the technique explained below by Kurt Quackenbush - I always learn something when I post to IBM-MAIN - Thanks!
However, in a JES2 user exit environment, with JES2's particular sensitivity to exact JES2 macro expansions, Dave points out that when using Kurt's suggestion, the very macros that are most important to the JES2 user exit (which are those listed on the $MODULE macro call), are NOT picked up by Kurt's suggested technique - nor would I expect it to, based on the current design of JCLIN processing. Therefore, I would suggest that the UCLIN technique previously discussed in this thread is "the way this is done". Now that we've heard from the real expert, Kurt Quackenbush, I am more confident the statement in the first sentence of this paragraph is correct. It would be really cool if someone (like Dave) could figure out a way for the needed UCLIN statements to be generated automatically - or even better, for SMP/E itself to somehow do what we need it to "automatically" somehow. Brian On Thu, 11 Sep 2008 09:26:05 -0700, Gibney, Dave wrote: > I did try that. None of the macros called by $MODULE were detected >and GENASM'd. And getting the associated with the exit is the whole >point of the exercise. > >> -----Original Message----- >> From: IBM Mainframe Discussion List [mailto:[EMAIL PROTECTED] On >> Behalf Of Big Iron >> Sent: Thursday, September 11, 2008 7:10 AM >> To: [email protected] >> Subject: Re: SMP/E GIM44402W >> >> However, if you include the full source, won't SMP/E generate GENASM >> entries for all macros, not just the JES2 ones? I think that the >latter >> may >> be the intent here. Also, will SMP/E detect macros that invoke other >> macros, like the JES2 $MODULE macro commonly used in JES2 exits? >> >> Maybe one could provide some form of synthetic source code in the >JCLIN >> which represents those macros which, if changed, would likely require >> the exit to be reassembled, >> >> Bill >> >> On Thu, 11 Sep 2008 08:47:46 -0400, Kurt Quackenbush >> wrote: >> >> >> 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

