Previous Topic: Example 5: Deleting a DatabaseNext Topic: Example 7: Restore


Example 6: Sequential Copy of the Index

In this example, a sequential copy of the master index for database VIEW.SYSTEM1 is printed.

//EXAMPLE6 JOB ACCOUNT,PROGRAMMER
//STEP1    EXEC PGM=SARDBASE
//STEPLIB  DD DSN=CAI.CVDELOAD,DISP=SHR
//SYSPRINT DD SYSOUT=*
//SARIOUT  DD DSN=USER.DATA SET,DISP=(,CATLG),
//            UNIT=SYSDA,SPACE=(CYL,(1,1))
//SYSIN    DD *
NAME VIEW.SYSTEM1
IDXOUT
/*