Previous Topic: Edit Data SetsNext Topic: Locate Fields in Formatted Mode


Select Members to Process

To edit a PDS member, enter the name of the PDS and the name of the member that you want to edit. If you enter a wildcarded member name or if you leave the member name field blank, the Select Member to Process panel displays. The Select Member to Process panel displays a list of the members in the PDS that meet the wildcard criteria. If the member name field was left blank, the Select Member to Process panel displays a list of all members in the specified PDS. Select the member that you want to edit and press Enter to edit the member.

Follow these steps:

  1. Select EDIT from the Main Menu screen, Option 2.

    The Edit Data Set screen displays.

  2. Specify the name of the PDS that contains the member that you want to edit.
  3. Specify a wildcarded member name or leave the member name field blank, and press Enter.

    The Select Member To Process screen displays a list of the PDS members that meet the wildcard criteria you specified. If you left the member name field blank, the Select Member To Process screen displays a list of all members in the PDS.

  4. Use any of the following commands to locate a member:
    LOCATE value

    Positions to the first member in the directory whose sort sequence field is greater than or equal to the specified value.

    For example, when the directory list is sorted by the Name column, LOCATE ABC positions the member list to the first member in the list whose member name is greater than or equal to the name ABC.

    Note: You can use the abbreviation L for the LOCATE command.

    MEMBER 'value'

    Specifies additional member selection criteria. This command reduces the current member list to only those members that contain records that match the specified value. Use successive MEMBER commands to further reduce the current member list.

    For example, MEMBER 'ABC' reduces the member list to only those members that contain the characters ABC in one of their records. A subsequent MEMBER 'XYZ' command reduces the member list to only those members that contain the characters ABC and XYZ.

    S member

    Selects a member from the data set for processing. The member does not have to be in the current member list to be selected.

    SORT column

    Sorts the directory by any of the columns in the directory. You can also specify whether to sort a column in ascending or descending order by specifying an A or D after the column value.

    For example, the command SORT CREATED sorts the directory in descending order of Created date and SORT ID D sorts the directory in descending order of User ID.

  5. Type an S (for select) next to the member that you want to edit and press Enter.

    The contents of the member displays on the screen.

Formatting Modes

When you open a Browse or Edit session, you specify one of the following formatting modes:

You can switch from one formatting mode to another in an open browser or edit session by entering one of the following values:

Character Mode

Use the CHAR command from an edit session to display records in character mode. Character mode displays the record in character format as it appears in the file. You can also use the HEX ON command to view the record data in hex.

Example

The following example shows a record displayed in character mode:

Edit YOUR.FILE Columns 00001 00072 COMMAND ===> SCROLL ===> CSR ****** ****************************** Top of Data ***************************** 000001 1234567XXXXXXXXXXXXXXX ab12345 6789 000002 7654321YYYYYYYYYYYYYYY 00000 0000 000003 9999999ZZZZZZZZZZZZZZZ 00000 0000 ****** ****************************** Bottom of Data **************************

Single-Record Format

Use the SF command from an edit session to display records in single-record format. Single-record format displays one record at a time, showing the field name on the left of the screen and the data values on the right. You can also use the HEX ON command to view the record data in hex.

Single-record format displays the following fields:

Record Number

Displays the relative record number within the file

Record Length

Displays the length of the displayed record

Record Layout

Displays the name of the record layout that defines the format of the current view

Field Name

Contains the field level number and field name with indentation to indicate the hierarchy of the fields

The indentation rules for the field name column are as follows:

Pos

Displays the starting position of the field within the record

Format

Displays the data-type indicator followed by either the number of digits or characters allowed for the field as defined by the field definition.

Valid data-type indicators are as follows:

B—Binary

C—Alphanumeric (EBCDIC)

F—Floating point

N—Any numeric field (EBCDIC)

P—Packed

S—Signed

U—Alphanumeric (UTF-16)

D—Any numeric field (UTF-16)

Value

Displays the formatted data as defined by the field definition.

The following rules apply to single-record formatted mode:

Example

The following example shows a record displayed in single-record format:

Record Number: 1 Record Length: 300 Record Layout: CUSTREC Field Pos Format Value 01 CUST-RECORD 1 300 05 CUST-CUSTOMER-NUM 1 N 9 123456789 05 CUST-CUSTOMER-TYPE-CODE 10 C 2 AA 05 CUST-ACCT-OPENED-DATE 12 N 6 10101 05 CUST-DOB 18 N 6 70450 05 CUST-1ST-TRANSACTION-DATE 24 6 10 CUST-1ST-TRANSACTION-MM 24 N 2 08 10 CUST-1ST-TRANSACTION-DD 26 N 2 31 10 CUST-1ST-TRANSACTION-YY 28 N 2 1 05 CUST-CURRENT-BAL 30 P 9.2 100000.00 05 CUST-ORIG-BAL 36 P 9.2 90000.00 05 CUST-PAYMENT-AMT 42 P 9.2 0.00 05 CUST-PAYMENT-PERIOD 48 N 2 30 05 CUST-NAME 50 C 25 JANE SMITH 05 CUST-ADDR-1 75 C 30 55 MAIN STREET 05 CUST-ADDR-2 105 C 30 05 CUST-CITY 135 C 20 SPRINGFIELD 05 CUST-STATE 155 C 2 MA 05 CUST-ZIP-CODE 157 C 10 02345-6789 05 CUST-COUNTY-CODE 167 N 3 1 05 CUST-DELIQENCY-CODE 170 C 1 A 05 CUST-AGENT-ID 171 N 5 12345 05 CUST-PAID-TO-DATE 176 N 9.2 10000.00

Multi-Record Format

Use the MF command from an edit session to display records in Multi-Record format. Multi-Record format displays multiple records at once in a columnar display. Each column displays the field names at the top followed by a formatted display of the values in that field. You can also use the HEX ON command to view the record data in hex.

The following rules apply to multi-record formatted mode:

Example

The following example shows a data set in multi-record format.

Edit TEST.CUSTREC Columns 00001 00055 COMMAND ===> CUST CUST CUSTOMER CUST ACCT CUST CUST 1ST CUSTOMER NUM TYPE CODE OPENED DATE DOB TRANSACTION MM N 9 C 2 N 6 N 6 N 2 1----------- 10----------- 12--------- 18---- 24------------ ****** ****************************** Top of Data ***************** 000001 2000 AA 10101 70450 8 000002 20002 BB 20189 20467 3 000003 20003 CC 40102 70778 4 000004 20010 AB 40101 10166 7 000005 20029 XX 50102 120166 2 000006 20049 YY 60602 70450 1 000007 40000 ZZ 83001 71983 3 000008 40000 BX 110199 72816 9 000007 40000 ZZ 083001 071983 3 000008 40000 BX 110199 072816 9

The field names are displayed as column headings. The field names in this example are CUST-CUSTOMER-NUM, CUST-CUSTOMER-TYPE-CODE, CUST-ACCT-OPENED-DATE, CUST-DOB, and CUST-1ST-TRANSACTION-MM. Hyphens in field names are removed in the display.

The field format and length are displayed below the field name. The CUST-CUSTOMER-NUM field in this example has a format and length of N 9, indicating a numeric field of up to 9 digits. The CUST-CUSTOMER-TYPE-CODE field has a format and length of C 2, indicating a character field of up to 2 characters.

The field position is displayed below the field format and length. The value of CUST-CUSTOMER-NUM field in this example is at position 1 in the record. The value of CUST-CUSTOMER-TYPE-CODE is at position 10.