Example of TSO CLIST Allocation Inside ISPF
Inside ISPF, DMMSGFIL and DMPUBLIB can still be allocated using the TSO ALLOCATE command, and freed using the TSO FREE command, but the ISPF application component data sets must be allocated using LIBDEF, since ISP*LIB DDs cannot be altered once ISPF has been started. Also, although SYSPROC can be reallocated inside ISPF, it is easier to use the TSO ALTLIB command to direct the IUI application to the Sterling Connect:Direct CLIST/REXX PDS.
Create a CLIST to allocate the IUI dialog data sets inside of ISPF. Note that TSOLIB cannot be used inside ISPF.
In the following example, DMNETMAP, DMMSGFIL, and DMPUBLIB are specified via generic LIBDEF.
PROC 0
ALTLIB ACTIVATE DATASET('$CD.SDGAISPC') APPLICATION(CLIST)
ISPEXEC LIBDEF DMNETMAP DATASET ID(‘$CD.NETMAP') STACK
ISPEXEC LIBDEF DMMSGFIL DATASET ID(‘$CD.MSG') STACK
ISPEXEC LIBDEF DMPUBLIB DATASET ID(‘$CD.SDGAPROC') STACK
ISPEXEC LIBDEF ISPLLIB DATASET ID(‘$CD.SDGALINK') STACK
ISPEXEC LIBDEF ISPMLIB DATASET ID(‘$CD.SDGAMENU') STACK
ISPEXEC LIBDEF ISPPLIB DATASET ID(‘$CD.SDGAPENU') STACK
ISPEXEC LIBDEF ISPSLIB DATASET ID(‘$CD.SDGASENU') STACK
EXIT