|
The American Programmer | |
| Home | Programming | Books for Computer Professionals | Privacy | Terms |
| Home > Programming > ISPF Batch |
| Home > Programming > ISPF Book > ISPF Batch |
| Home > Programming > Manuals > TSO Manuals > ISPF Batch |
| Home > Programming > Just Enough > ISPF Batch |
ISPF Dialogue Manager Book (Create your own panels)
IBM manual section on batch mode
ISPF in Batch
You may want to use some of ISPF's services in a batch job. You may want to use Variable Services, Library Management, Table Services or File Tailoring in batch. I am not going to discuss the concept of displaying panels in a batch job.
Create and test your code as you would for use on-line. Write a REXX program to launch it as you would on-line. Create JCL similar to that shown here. Insert the name of your REXX program in the last line of the JCL. Place a JOB statement at the top and submit the JCL.
If you don't know all the library names referred to in the JCL, do the TSO command LISTALC STATUS when you are on-line. This will show you the names of the libraries assigned to the DDNAMES that are in use. Note these names and place them in the JCL.
If you plan to use File Tailoring or Table Services, look in the DMSETUP REXX program for the libraries and DDNAMES used with these features. Put them in your JCL as well.
By submitting your job to batch you will free up your terminal and possibly use less CPU time than you would on-line. In addition, if your batch job appears to go into a loop, you can easily cancel it from your terminal.
IBM warns you that these commands in batch will get you into an unending loop: ISPPREP, KEYS, ZKEYS, PFSHOW TAILOR, ENVIRON, LOG, LIST.
Generic JCL for executing ISPF in batch.
//* VALID JOB STATEMENT GOES HERE
//ISPFBATC EXEC PGM=IKJEFT1A,DYNAMNBR=200
//SYSEXEC DD DSN=name-of-rexx-library,DISP=SHR
//SYSPROC DD DSN=name-of-clist-library,DISP=SHR
//SYSPRINT DD SYSOUT=*
//SYSTSPRT DD SYSOUT=*
//SYSHELP DD DSN=name-of-help-library,DISP=SHR
//ISPLLIB DD DSN=name-of-load-library,DISP=SHR
//ISPPLIB DD DSN=name-of-panel-library,DISP=SHR
//ISPMLIB DD DSN=name-of-message-library,DISP=SHR
//ISPSLIB DD DSN=name-of-skeleton-library,DISP=SHR
//ISPTLIB DD DSN=name-of-table-library,DISP=SHR
//SYSEDIT DD SPACE=(CYL,(1,5)),UNIT=SYSDA
//SYSEDIT2 DD SPACE=(CYL,(1,5)),UNIT=SYSDA
//SYSUT1 DD SPACE=(CYL,(1,1)),UNIT=SYSDA
//SYSUT2 DD SPACE=(CYL,(1,1)),UNIT=SYSDA
//SYSUT3 DD SPACE=(CYL,(1,1)),UNIT=SYSDA
//SYSUT4 DD SPACE=(CYL,(1,1)),UNIT=SYSDA
//* you may use your ispf profile library here instead
//ISPPROF DD UNIT=SYSDA,
// DCB=(DSORG=PO,RECFM=FB,LRECL=80,BLKSIZE=3120),
// SPACE=(TRK,(5,0,5))
//ISPLOG DD UNIT=SYSDA,
// DCB=(DSORG=PS,RECFM=FB,LRECL=80,BLKSIZE=3120),
// SPACE=(TRK,(5,0))
//SYSTSIN DD *
PROFILE PREFIX(your-userid)
ISPSTART CMD(name-of-rexx-program)
Sometimes you need just enough information so that you can do something - it gets you started when you don’t have time to learn everything. Get all the others in the series at: Justenuf Other Books for professionals: REXX Reference All REXX verbs, keywords, and built-in functions as found in MVS, VM/CMS and OS/2. Order from MVS Training (800) 356 9093.MVS Training The REXX Language on TSO How to use REXX on TSO. Information, ordering at: REXX ISPF Services: Using the Dialogue Manager with REXX How to create ISPF panels on TSO. Examples in REXX. Information, ordering at:ISPF Services You will find a large selection of mainframe books at:Books. You’ll find manuals on TSO, JCL, REXX, COBOL, DB2 at:Manuals. About this series.