Batch cross referencing examples


The examples in this section illustrate how to specify control statements to request cross reference reports in various ways.

In these examples, except where stated otherwise, the DD statements to provide library names are not coded.

  • The following control statement cross references the production PSB library. All PSB cross reference reports are produced.

    XREF PSBLIB(IMSP.PSBLIB)
  • The following control statement cross references the PSB, DBD, ACB, and MFS libraries. All cross reference reports are produced.

    XREF PSBLIB(IMSP.PSBLIB) -
    DBDLIB(IMSP.DBDLIB) -
    ACBLIB(IMSP.ACBLIB) -
    MFSLIB(IMSP.MFSLIB) -
    RESLIB(IMSP.RESLIB)
  • The following control statements shows how to provide a range of names for the ACB and DMB directory members in a current directory library.
 XREF    DIRLIB(IMSP.MACB,C) -  
         LOACB(A) HIACB(C999) -            
         LODMB(CDBD01) HIDMB(F999)


  • The following control statement produces only the DBD to PSB Cross Reference report. All others are suppressed.

    XREF PSBLIB(IMSP.PSBLIB) -
            REPORTS(DBDPSB(YES),PSBTYPE(NO),+
                 TYPEPSB(NO))
  • The following control statements show the use of the GLBL statement to define the libraries. In this example, the ACB and DBD reports are produced. The RESLIB library is required for the ACB to DMB, DMB to ACB, and MFS Characteristics Table reports.

    GLBL DBDLIB(IMSP.DBDLIB) -
         ACBLIB(IMSP.ACBLIB) -
         RESLIB(IMSP.RESLIB) -
         XREF
  • The following control statement produces all DBD and ACB Cross Reference reports except for the ACB to DMB Cross Reference report.

    XREF ACBLIB(IMST.ACBLIB) -
         DBDLIB(IMST.DBDLIB) -
         REPORTS(ALL,ACBDMB(NO))
  • The following portion of a job stream shows how to control the production of the reports when a JCL standard procedure defines all of the libraries. Only the DBD Cross Reference reports are produced, even though the others have been specified in the JCL.

    //PSBLIB   DD DSN=IMSP.PSBLIB,DISP=SHR
    //DBDLIB   DD DSN=IMSP.DBDLIB,DISP=SHR
    //ACBLIB   DD DSN=IMSP.ACBLIB,DISP=SHR
    //MFSLIB   DD DSN=IMSP.MFSLIB,DISP=SHR
    //DFSRESLB DD DSN=IMSP.RESLIB,DISP=SHR
    //*
    //DBISYSIN DD *
      XREF DBDLIB()
  • The following example shows how to provide a pattern to match. It provides reports for all DBD members that have CUST in the first through fourth positions of their names.

    XREF ACBLIB(IMST.ACBLIB) -
      DBDLIB(IMST.DBDLIB) -
      PSBLIB(IMST.PSBLIB) -
      LODBD(CUST*)
  • The following example shows how to use partial names to limit the range of members. It provides DBD reports for the range of members in the library, beginning with the first member name that contains CUST in the first through fourth positions and ending before the first member name that contains F in the first position of the member name.

    XREF DBDLIB(IMST.DBDLIB) -
      LODBD(CUST) HIDBD(F)

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*