I wrote a procedure:
Last step of the procedure is to Create VSAM File.
//STEP5 EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
// PEND
//SYSPRINT DD SYSOUT=*
// PEND
I execute as below:
//STEP5.SYSIN DD *
DELETE (TSSDN.EMPLOYEE.MASTER) CLUSTER PURGE
DEFINE CLUSTER( -
NAME(TSSDN.EMPLOYEE.MASTER) -
FREESPACE(10 10) -
INDEXED -
KEYS(30 0) -
RECORDSIZE(80 80) -
SHAREOPTIONS(3 3) -
ERASE -
UNIQUE -
STORCLAS(NULL) -
VOLUMES(IMS60X) -
CYLINDERS(40 10) -
) -
DATA( -
NAME(TSSDN.EMPLOYEE.MASTER.DATA) -
CONTROLINTERVALSIZE(8192) -
) -
INDEX( -
NAME(TSSDN.EMPLOYEE.MASTER.INDEX) -
CONTROLINTERVALSIZE(8192))
/*
DELETE (TSSDN.EMPLOYEE.MASTER) CLUSTER PURGE
DEFINE CLUSTER( -
NAME(TSSDN.EMPLOYEE.MASTER) -
FREESPACE(10 10) -
INDEXED -
KEYS(30 0) -
RECORDSIZE(80 80) -
SHAREOPTIONS(3 3) -
ERASE -
UNIQUE -
STORCLAS(NULL) -
VOLUMES(IMS60X) -
CYLINDERS(40 10) -
) -
DATA( -
NAME(TSSDN.EMPLOYEE.MASTER.DATA) -
CONTROLINTERVALSIZE(8192) -
) -
INDEX( -
NAME(TSSDN.EMPLOYEE.MASTER.INDEX) -
CONTROLINTERVALSIZE(8192))
/*
First its delete and than create VSAM File. If VSAM File is not exists, I get return code 8 message in output.
I like to avoid that. I like to eliminate the return code 8. If its exits everything is fine.
thank you