Previous Topic: SARDBASE ExamplesNext Topic: Example 2: Adding Space


Example 1: Creating a Database

In this example, a new database is created with a high-level name of VIEW.SYSTEM1. The number of cylinders allocated are 10 for index and 50 for the data. The index and data portions are allocated on different volumes, SAR001 and SAR002, for improved performance.

//EXAMPLE1 JOB ACCOUNT,PROGRAMMER
//STEP1    EXEC PGM=SARDBASE
//STEPLIB  DD DSN=CAI.CVDELOAD,DISP=SHR
//SYSPRINT DD SYSOUT=*
//SYSIN    DD *
NAME VIEW.SYSTEM1
ADDDS UNIT=3390 VOL=SAR001 CYL=10 INDEX
ADDDS UNIT=3390 VOL=SAR002 CYL=50 DATA
/*