Dr. Caftori's JCL last assignment

Assignment 4


Due ...

You may choose between working in a team on the following JCL or do some other related group work, approved first by me.

This may be a very difficult task at 1st...

1. Write an instream procedure with 2 steps the first executing the IEBGENER program and the second the SORT program as follows:

  • Use DDNAME= for the input in the 1st step.
  • Pass a temporary file with no name on disk from the 1st to the 2nd step.
  • Use DUMMY control statements or DDNAME=.
  • Make up a file name for the output from the SORT or write only a DCB parameter (it is compatible with both DSN and SYSOUT parameters).
  • 2. Write JCL to run a job of 3 steps as follows:

  • The 1st step calls the proc above and introduces a card input that will be copied to disk by IEBGENER and that will be sorted in alphabetical order into a temporary file &&YOUR.LAST.NAME. Make up all DCB's as you please.
  • In the 2nd step of the job, execute another SORT program that will sort a card file into &&YOUR.FIRST.NAME
  • The 3rd step will call the instream proc again to read &&YOUR.FIRST.NAME by IEBGENER that will change the fields around and pass the output on a temporary disk to the SORT. The SORT will merge this time both temporary files into a printout file.
  • Create your 2 input card files in such a way that both are not sorted at first and that one is with male names and the other with female names... You may choose a 2nd fiels to your likings (such as telephone number, or occupation, or whatever)


    Return sweet home

    Last updated on 1/20/01