I have a sample code of delete/define using IDCAMS in z/OS, but I dont think it will work on z/VSE. Can someone help me convert this? The file created should be VSAM-kSDS.
//VDFNDEL JOB 1,SAMPLE,MSGCLASS=X
//STEP1 EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
DELETE SAMPLE.DATA.VSAM CLUSTER
/*
//STEP2 EXEC PGM=IDCAMS
//SYSPRINT DD *
//DATAIN DD DISP=OLD,DSN=SAMPLE.SORTOUT
//SYSIN DD *
DEFINE CLUSTER (NAME (SAMPLE.DATA.VSAM) -
VOLUMES(WORK02) CYLINDERS(1 1) -
RECORDSIZE (72 100) KEYS(9 8) INDEXED)
REPRO INFILE(DATAIN) OUTDATASET(SAMPLE.DATA.VSAM) ELIMIT(200)
/*
Your IDCAMs statements should be pretty much the same but the JCL is completely different.
Example taken from the extremely useful redbook