z/VSE JCL example 3: VSAM files

Figure 1 shows simplified z/VSE® JCL for comparing two VSAM files. This example is supplied with SuperC in the Librarian member ASMFVSC3.Z.
Figure 1. Sample z/VSE JCL for comparing VSAM files
// JOB ASMFVSC3
// LIBDEF *,SEARCH=(PRD2.PROD)
// OPTION NODUMP
// DLBL NEWDD,'new_file_ID',,VSAM,CAT=IJSYSUC
// DLBL OLDDD,'old_file_ID',,VSAM,CAT=IJSYSUC
// DLBL UPDDD,'update_file_ID',0,SD
// EXTENT extent_information
// ASSGN assign_logical_unit_information
// EXEC ASMFSUPC,PARM='options'
process_statements
⋮
/*
/&

The update file, which is created by SuperC only if you specify an UPD… process option, is a non-VSAM-managed sequential file.

If you want to use DLBL names other than NEWDD, OLDDD, and UPDDD, then you must specify NEWDD, OLDDD, and UPDDD process statements (as shown in Figure 1). In native VSAM, the file's attributes are taken from the VSAM catalog.