Previous Topic: Database Restore (SARRSP)Next Topic: Conversion Assistance (SARDBB)


Job Control Statements

Sample execution JCL is in member HAEXRSP in your CVDEJCL data set.

These job control statements are required to execute SARRSP:

JOB

Initiates the job.

EXEC

Specifies the program name (PGM=SARRSP) and the high-level name of the database as the PARM parameter (PARM='VIEW.SYSTEM1').

STEPLIB DD

Defines the load library containing SARRSP.

If the program resides in a linklist library, omit this statement.

SYSPRINT DD

Defines a sequential output data set (normally SYSOUT) used for messages.

If not a SYSOUT data set, data set must be coded with RECFM=FBA, LRECL=133, and a BLKSIZE that is a multiple of 133.

DDSARLOAD DD

Defines a CA View unload tape created by the SARDBASE utility (UNLOAD control statement) from which panels, messages, and SYSOUT groups can be restored.

FREE=CLOSE can be coded on the DD statement to dismount the tape at the end of the SORT input phase as opposed to step termination. The DD statement is optional and must only be specified when a CA View unload tape exists.

SORTLIB DD

Defines the load library that contains the SORT program library.

This DD statement might not be needed if the sort program library is moved to LPA.

SYSOUT DD

Defines a sequential output data set (normally SYSOUT) to which SORT messages are written.

SORTWKnn DD

Defines temporary sort work disk space where nn represents a numeric number.

Normally a minimum of three sort work DD statements are specified.

Example

To restore panels, messages, and SYSOUT to the VIEW.SYSTEM1 database, use the following JCL:

//SARRSP   JOB ACCOUNT,PROGRAMMER
//STEP1    EXEC PGM=SARRSP,PARM='VIEW.SYSTEM1'
//STEPLIB  DD DSN=CAI.CVDELOAD,DISP=SHR
//SARLOAD  DD DSN=VIEW.SYSTEM1.UNLOAD(0),
//            DISP=SHR,FREE=CLOSE
//SYSPRINT DD SYSOUT=*
//SYSUDUMP DD SYSOUT=*
//SYSOUT   DD SYSOUT=*
//SORTLIB  DD DSN=SYS1.SORTLIB,DISP=SHR
//SORTWK01 DD UNIT=SYSDA,
//         SPACE=(CYL,(10),,CONTIG)
//SORTWK02 DD UNIT=SYSDA,
//         SPACE=(CYL,(10),,CONTIG)
//SORTWK03 DD UNIT=SYSDA,
//         SPACE=(CYL,(10),,CONTIG)