How to Begin Using ISPF
To use ISPF, certain requirements must be met. First of all, ISPF must be available to you, usually by means of a CMS system disk such as the S-disk or the Y-disk. If you are not sure where the ISPF licensed program resides, ask your supervisor. Each installation can install ISPF to suit their own needs, which can vary considerably. You will need the various libraries distributed with the ISPF licensed program.
- ISPPLIB MACLIB
- Panel Libraries
- ISPMLIB MACLIB
- Message Libraries
- ISPTLIB MACLIB
- Table Input Libraries
You also need the ISPSTART command to begin dialog processing. If these commands and libraries are not available to you, consult your supervisor or system administrator.
Before you invoke ISPF, your virtual device 191 must be accessed as the A-disk. During operation, ISPF assumes that this minidisk is always in read/write mode and that no other user has write access to it. (In some cases, ISPF permits multiple write access to minidisks other than 191, provided that such access is performed under the control of ISPF.)
FILEDEF ISPPLIB DISK USRPANEL MACLIB * (PERM CONCAT)
FILEDEF ISPPLIB DISK ISPPLIB MACLIB * (PERM CONCAT)
FILEDEF ISPMLIB DISK USRMESGS MACLIB * (PERM CONCAT)
FILEDEF ISPMLIB DISK ISPMLIB MACLIB * (PERM CONCAT)- ISPTLIB
- is the ddname for all the table input libraries.
- Skeleton library
- ddname ISPSLIB
- Table Output library
- ddname ISPTABL
- File Tailoring Output library
- ddname ISPFILE
- Profile library
- ddname ISPPROF
The PERM option ensures that the FILEDEF remains in effect throughout an ISPF session. The CONCAT option concatenates two or more libraries under the same ddname. The order that libraries are searched is the same as the order that the FILEDEFs are issued. (You do not have to issue a GLOBAL MACLIB command before invoking ISPF.)
/* ACCESS ISPF SYSTEM */
'CP LINK ISPMAINT 591 591 RR'
'ACCESS 591 Z/A'
'FILEDEF ISPPLIB DISK USRPANEL MACLIB * (PERM CONCAT)'
'FILEDEF ISPPLIB DISK ISPPLIB MACLIB * (PERM CONCAT)'
'FILEDEF ISPMLIB DISK USRMESGS MACLIB * (PERM CONCAT)'
'FILEDEF ISPMLIB DISK ISPMLIB MACLIB * (PERM CONCAT)'You can create panel and message libraries by using XEDIT together with the MACLIB command. Create each panel with the editor first, then build the panel library with the MACLIB command.
The following steps outline a method of building a panel or message library:
- XEDIT MENUPAN PANEL
- (Create Panel)
- FILE MENUPAN COPY
- XEDIT NAMEPAN PANEL
- (Create Panel)
- FILE NAMEPAN COPY
- MACLIB GEN USERPAN MENUPAN NAMEPAN.
In steps 1 and 4, the panel members are created by using a file type of PANEL to bypass serialization. In steps 2 and 5, edit subcommands create the panel members. In steps 3 and 6, a form of the FILE subcommand is used to write the files to disk with a file type of COPY. In step 7, the MACLIB command is used to create USERPAN MACLIB. This library contains the two members MENUPAN COPY and NAMEPAN COPY.
After you create the panels and messages you need, you can develop an application using REXX, or you can develop your specific language application.
FILEDEF ISPXLIB DISK DEVLIB TXTLIB * (PERM)FILEDEF ISPLLIB DISK DEVLIB LOADLIB * (PERM)When a text module is invoked (either as a TEXT file or as a member of a TXTLIB), any other text modules that it calls are loaded automatically by automatic call reference. The modules must also be TEXT files on a ISPF-accessible minidisk or members of the TXTLIB allocated to ddname ISPXLIB. If you have more than one TXTLIB, use the CONCAT option of the FILEDEF command to concatenate the libraries under the same ddname, ISPXLIB.
If your program is in a LOADLIB, use the ddname ISPLLIB. You can also specify a concatenated sequence for LOADLIBs. No automatic call referencing occurs with load modules. All load module references must be resolved before invocation by ISPF. Load modules can be used only for programs that are reenterable.
- The PANEL parameter causes the panel specified to be displayed, and passes any options to it that are specified on the ISPSTART command line.
- The CMD parameter specifies the name of an exec to be invoked as the first dialog function.
- PGM specifies the program name to be invoked as the first dialog function.