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


z/VSE JCL Example 2: VSAM-managed sequential files

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

Figure 1 shows simplified z/VSE JCL for searching a VSAM-managed sequential file. This example is supplied with SuperC in the Librarian member ASMFVSS2.Z.
Figure 1. Sample z/VSE JCL for searching a VSAM-managed sequential file
// JOB ASMFVSS2
// LIBDEF *,SEARCH=(PRD2.PROD)
// OPTION NODUMP
// DLBL NEWDD,'search_file_ID',0,VSAM,CAT=IJSYSUC,DISP=(OLD,KEEP)
// 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).

If you specify file attributes with the NEWDD process statement, then those file attributes override the VSAM catalog entries for the file to be searched.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014