Creating a new XREF member


In this section you create a new member, ORDERXRF, in your sample XREF dataset (FASAMP.XREF). The new ORDERXRF member is used to describe the layout selection rules for the sample order file (FASAMP.ORDRFILE). The file contains four types of records, each of which is described by a different record layout. Two data fields are used to identify each record type as shown in the following table:

FASAMP.ORDRFILE Records

Layout Member

01 Level Name

Field 1
ORDER-TYPE

Field 2
CONTRACT-INDICATOR

ORDERPO
ORDER-LINE-DATA-PO

PO

(not applicable)

ORDERSC
ORDER-LINE-DATA-SC

SC

(not applicable)

ORDERWO
OUTSIDE-VENDOR-WORK-ORDER

WO

OV

ORDERWO
INTERNAL-WORK-ORDER

WO

IN

Notice that two of the layouts are stored in the same member (ORDERWO) of the sample layouts library (FASAMP.LAYOUTS). You are shown how to identify each of the two structures independently.

Record Layout Cross Reference (XREF) Function Entry screen

image2021-6-21_18-58-18.png

Steps:

  1. Type FASAMP.XREF in the XREF Dataset name field under the Specify Cross Reference Dataset information section.

    If you want to create a new XREF dataset, the attributes are:

       DSORG=PO,RECFM=VB,LRECL=300,BLKSIZE=x (x = 304 or more)

    You may store XREF members and permanent selection criteria members in the same data set. Any entry you make here is reflected on all File-AID screens where an XREF dataset is permitted.

  2. Type ORDERXRF in the Member name field.

    You are creating a new member, ORDERXRF. You can enter the name of an existing member. You can also leave the field blank or specify a pattern to display a list of existing XREF members from which you can select. The member you identify here is reflected on all File-AID screens where an XREF member is permitted.

  3. Type FASAMP.LAYOUTS in the Record layout dataset field.

    This is the name of the library containing the record layouts you reference during XREF creation and XREF usage. The last referenced layout library entered on any File-AID screen is shown as a default. Any entry you make here is reflected on all File-AID screens where a record layout library is referenced.

  4. Press Enter. File-AID displays the Define XREF screen as illustrated in Define XREF Screen. Requesting a Pattern Member List.

 

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