Verifying file status (VERIFY)
IDCAMS Verifying file status (VERIFY) Example
Scenario - Copy data from KSDS to PS file from E0003 to E0005.
Input ESDS File - MATEPK.EMPL.KSDS
JCL -
----+----1----+----2----+----3----+----4----+----5----+
//MATEPKV JOB (123),'MTH',CLASS=A,MSGCLASS=A,
// MSGLEVEL=(1,1),NOTIFY=&SYSUID
//*******************************************
//* EXPORT DATA FROM VSAM KSDS TO PS DATA SET
//*******************************************
//STEP010 EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//INPUT DD DSN=MATEPK.EMPL.KSDS,DISP=SHR
//SYSIN DD *
VERIFY -
FILE(INPUT)
/*
Output -
Once the above JCL is submitted, check the MAXCC of the job for any errors. If the MAXCC is 00 or 04, then the file is good to use.