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


z/VSE JCL example 5: Librarian members

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

Figure 1 shows simplified z/VSE JCL for comparing all like-named members in two Librarian sublibraries. This example is supplied with SuperC in the Librarian member ASMFVSC5.Z.
Figure 1. Sample z/VSE JCL for comparing all like-named members in two sublibraries
// JOB ASMFVSC5
// LIBDEF *,SEARCH=(PRD2.PROD)
// OPTION NODUMP
// DLBL UPDDD,'update_file_ID',0,SD
// EXTENT extent_information
// ASSGN assign_logical_unit_information
// EXEC ASMFSUPC,PARM='options'
NEWDD newlib.sublib
OLDDD oldlib.sublib
other_process_statements
⋮
/*
/&

Members in either sublibrary not having like-named members in the other sublibrary are not compared, but are reported in the listing file.

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 a DLBL name other than UPDDD for the update file, specify an UPDDD process statement (as shown in Figure 1).

To restrict a comparison of sublibraries to selected members only, use the SELECT process statement. For example, the following process statement:
SELECT NEW1.SOURCE:OLD1.SOURCE,SAME.C
instructs SuperC to compare only:
  • Member NEW1.SOURCE in the new sublibrary with member OLD1.SOURCE in the old sublibrary
  • Member SAME.C in the new sublibrary with member SAME.C in the old sublibrary

For more information about the SELECT process statement, see Select members (z/VSE).

There are two ways to compare only Librarian members:
  • Use the SELECT process statement.
  • In the NEWDD and OLDDD process statements, specify members rather than entire sublibraries. For example:
    NEWDD LIB.NEWSUB.SAME.C
    OLDDD LIB.OLDSUB.SAME.C
To compare groups of members, specify asterisk (*) wildcard character in the member name or type in the NEWDD and OLDDD process statements. For example:
NEWDD LIB.NEWSUB.NEW*.*
OLDDD LIB.OLDSUB.OLD*.*

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014