Extra Credit Assignment 3

DFSORT, IEBGENER and IEBPTPCH

(20 points extra credit)


Create and run a multistep job using the utility programs to perform the operations described below. Use proper JCL documentation.


Input

Two input files are involved here, all catalogued:

The records in OLDUSER have this format:

The records in NEWUSER have this format:


Processing

Your job should contain the following steps:

  1. Use IEBPTPCH to print the first 10 records in the OLDUSER file using IEBPTPCH's default format (no RECORD FIELD). You should have a page heading (centered), and the output should be triple-spaced.

  2. Use IEBGENER to copy OLDUSER into a new permanent file, making a few changes:

    Rearrange the fields into this order:

    Give the new file a name of the form Znumber.OLDUSER, where Znumber is your own LogonID.

  3. Use IEBGENER to copy NEWUSER into a new file, making a few changes: Give the new file a name of the form Znumber.NEWUSER, where Znumber is your own LogonID.

  4. Use DFSORT to sort the two new files created in steps 2 and 3, concatenated together in SORTIN, in ascending order on the LogonID field, creating a temporary file called &&MERGE.

  5. Use IEBGENER to make a copy of &&MERGE. Pack all of the numeric fields. Make no other changes. The new copy should be in a permanent file with a name of the form Znumber.PACKED.

  6. Use IEBPTPCH to print the first 15 records of the new PACKED file in hexadecimal format, double-spaced. Use a page heading (centered), but there is no need for column headings or separation between fields.

  7. Use IEBPTPCH to print the PACKED file into a temporary file called &&LAST, converting the numeric fields to zoned decimal format, single-spaced, without a page heading. Do nothing more.

  8. Use IEBGENER to copy &&LAST into a new permanent file with a name of the form Znumber.NEATCOPY, making the following changes:

  9. Use IEBPTPCH to print NEATCOPY. You should provide a page heading and column headings. Center the output on the page and leave some space between columns. Make it double-spaced. You may need to use STRTAFT=1. (Figure out why!)

  10. Use IEFBR14 to delete all the files you have been creating in the above steps.


Notes