z/VSE JCL example 3: VSAM files

Figure 1 shows simplified z/VSE® JCL for searching a VSAM file. This example is supplied with SuperC in the Librarian member ASMFVSS3.Z.
Figure 1. Sample z/VSE JCL for searching a VSAM file
// JOB ASMFVSS3
// LIBDEF *,SEARCH=(PRD2.PROD)
// OPTION NODUMP
// DLBL NEWDD,'search_file_ID',,VSAM,CAT=IJSYSUC
// EXEC ASMFSUPC,PARM='SRCHCMP process_options'
SRCHFOR 'search_string'
⋮
other_process_statements
⋮
/*
/&

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