On 2016-12-27 15:09, R.S. wrote: > W dniu 2016-12-27 o 22:54, Paul Gilmartin pisze: >> On 2016-12-27 14:47, R.S. wrote: >>> I'm trying to learn a little bit about SMP/E usermods. >>> Unfortunately neither SMP/E manuals nor google did not provide good (*well >>> explained*) samples. >>> >>> >>> Example (from File Manager): >>> //SMPCNTL DD * >>> SET BDY(GLOBAL). >>> RECEIVE SELECT(FMN2001) SYSMODS. >>> SET BDY (TARGET). >>> APPLY SELECT(FMN2001) RETRY(YES) REDO. >>> /* >>> //SMPPTFIN DD DATA,DLM=$$ >>> ++USERMOD (FMN2001) REWORK(201601) . >>> ++VER (Z038) FMID(JADLD12) PRE(UI25246) . >>> ++JCLIN. >>> /* >>> ++SRC(FMN2POPT) TXLIB(FMN2SRC) DISTLIB(AFMNSAM1). >>> $$ >>> FMN2SRC is a DD name pointing to a member with source code. >>> Q1: How can I know what's target library for the load module? >>> ++JCLIN should contain //SYSLIN INCLUDE ????(FMN2POPT) NAME FMN2LMOD(R) //SYSLMOD DD DSN=no.matter.TLIB ... where the rightmost qualifier of the SYSLMOD DSN identifies the DDDEF name in the target zone of the load module library. This might be overridden in the APPLY step with: //TLIB DD ... (But don't do that.)
>>> Q2: there is no assemble or linkedit jobstep. I assume it comes from SMP/E. >>> It should appear in ++JCLIN, which isn't really JCL even though it looks like it. ++JCLIN creates entries in the SMP/E VSAM data base which are used by APPLY and ACCEPT. >>> Q3: FMN2SRC DD - should it describe library or member? In other words: >>> DSN=MY.LIB or DSN=MY.LIB(MEM) ? >>> >> A TXLIB is a library in which APPLY (I think) will save member FNM2POPT. >> With the options coded, the assembler source of FNM2POPT should appear >> inline, >> after the ++SRC. There are other ways; I'd need to RTFM to say more. >> >> You'll need to allocate FNM2SRC in JCL and/or have a DDDEF for it. >> > TXLIB is a library with source code. > SMPE/ Reference: TXLIB is the ddname of the partitioned data set containing > the source. > I'll stand corrected. The value, FMN2SRC of the TXLIB key identifies either the DDNAME or the DDDEF entry of the library containing the source member (FMN2OPT) > Similar description can be found in FMN.SFMNSAM1 (a source of the job quoted > above). > Although the role of DISTLIB is not 100% clear for me, but definitely it's > not target library. > Yes, there are distribution libraries for both the source and the assembled object which are updated by ACCEPT. Most programmers don't ACCEPT USERMODs. ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
