I am trying to create a VSAM file using IDCAMS utility in JCL. MAXCC code that it returns is 0000.
But the newly created vsam file is not displayed in the list when I try to list it using 3.4.
Can anyone help me on this.?
The code that I have used is :
//VSAM0001 JOB (ACCT),CLASS=A,MSGLEVEL=(1,1
// NOTIFY=&SYSUID,MSGCLASS=A
//STEP0001 EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
DEFINE CLUSTER -
(NAME(DOMAIN.MYFILE.MYVSAM) -
VOL(AGH419) -
KEYS(16 0) -
RECORDSIZE(120 120) -
INDEXED -
REUSE ) -
DATA -
(NAME(DOMAIN.MYFILE.MYVSAM.DATA) -
CISZ(8192) -
RECORDSIZE(120 120) -
FSPC(0 0) ) -
INDEX -
(NAME(DOMAIN.MYFILE.MYVSAM.INDEX) )
/*
All messages will have an id (e.g., IEA1235) that can be used when searching for what generated the message.
You need to specify space in your IDCAMS 'DEFINE'. Look in your manual (or online) for specifying space for VSAM clusters.