HLASM Toolkit Feature User's Guide
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


z/VSE JCL example 3: VSAM files

HLASM Toolkit Feature User's Guide
GC26-8710-10

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.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014