z/VSE JCL example 4: Tape files

Figure 1 shows simplified z/VSE® JCL for comparing two labeled tape files. This example is supplied with SuperC in the Librarian member ASMFVSC4.Z.

Note: For unlabeled tape input, no // TLBL statement is used for the file concerned.
Figure 1. Sample z/VSE JCL for comparing labeled tape files
// JOB ASMFVSC4
// LIBDEF *,SEARCH=(PRD2.PROD)
// OPTION NODUMP
// TLBL new_file_name,'new_file_ID'                                   1 
// ASSGN SYS001,physical_unit_information                             2 
// TLBL old_file_name,'old_file_ID'                                   3 
// ASSGN SYS002,physical_unit_information                             4 
// DLBL update_file_name,'update_file_ID',0,SD
// EXTENT extent_information
// ASSGN assign_logical_unit_information
// EXEC ASMFSUPC,PARM='options'
NEWDD new_file_name,attributes                                   ─┬─  5 
OLDDD old_file_name,attributes                                   ─┘
UPDDD update_file_name
other_process_statements
⋮
/*
/&
 1 
Replace new_file_name with your choice of TLBL name for the new file to be compared; also insert this TLBL name in the NEWDD process statement (see  5 ). Replace new_file_ID with the name of the new file to be compared.
 2 
Insert appropriate physical unit information for the tape unit holding the new tape file.
 3 
Replace old_file_name with your choice of TLBL name for the old file to be compared; also insert this TLBL name in the OLDDD process statement (see  5 ). Replace old_file_ID with the name of the old file to be compared.
 4 
Insert appropriate physical unit information for the tape unit holding the old tape file.
 5 
NEWDD and OLDDD are process statements that, for tape input, allow you to:
  • Use your own choice of TLBL name for the new file and old file. If you do not specify NEWDD and OLDDD process statements, you must use the TLBL names NEWDD and OLDDD.
  • Specify file attributes for the new and old files. If you do not specify NEWDD and OLDDD process statements with file attributes, SuperC assumes that the new and old files are fixed unblocked with a record size and block size of 80.

For more information about the NEWDD and OLDDD process statements, see DD-VSE DLBL/TLBL definitions.