Using ISPF to allocate and edit a data set

The following instructions explain how to use ISPF to allocate a data set, edit it, and place your JCL control statements in it.

Note: ISPF screens may differ slightly from one MVS™ installation to another.
  1. On the ISPF Primary Option menu, select the appropriate item to display the Data Set Utility menu.
  2. On the Data Set Utility menu, select Option A (allocate new data set) and enter a data set name as shown in step 3 below, replacing userid with your own user ID.
    ----------------------------  DATA SET UTILITY  -----------------------------
    OPTION  ==   A
    
       A - Allocate new data set                 C - Catalog data set
       R - Rename entire data set                U - Uncatalog data set
       D - Delete entire data set                S - Data set information (short)
       blank - Data set information              M - Enhanced data set allocation
    
    ISPF LIBRARY:
       PROJECT ===>
       GROUP   ===>
       TYPE    ===>
    
    OTHER PARTITIONED OR SEQUENTIAL DATA SET:
       DATA SET NAME  ===> 'userid.SORT.JCL'
       VOLUME SERIAL  ===>          (If not cataloged, required for option "C)
    
    DATA SET PASSWORD ===>          (If password protected)
    
     
  3. On the Allocate New Data Set menu, fill in the fields indicated in the example below, replacing volser, unit, and size with appropriate values according to the information you filled in on Installation conventions worksheet.
    ----------------------  ALLOCATE NEW DATA SET  --------------------------------
    COMMAND ===>
    
    DATA SET NAME: userid.SORT.JCL
    
       VOLUME SERIAL      ===> volser      (Blank for authorized default volume) *
       GENERIC UNIT       ===>             (Generic group name or unit address) *
       SPACE UNITS        ===> unit        (BLKS, TRKS, or CYLS)
       PRIMARY QUANTITY   ===> 1           (In above units)
       SECONDARY QUANTITY ===> 1           (In above units)
       DIRECTORY BLOCKS   ===> 0           (Zero for sequential data set)
       RECORD FORMAT      ===> FB
       RECORD LENGTH      ===> 80
       BLOCK SIZE         ===> size
       EXPIRATION DATE    ===>             (YY/MM/DD, YYYY/MM/DD
                                            YY.DDD, YYYY.DDD in Julian form
                                            DDDD for retention period in days
                                            or blank)
    
       ( * Only one of these fields may be specified)
     
  4. Note that message "DATA SET ALLOCATED" indicates that the allocation has been completed.
     ----------------------------  DATA SET UTILITY  ----------- DATA SET ALLOCATED
  5. Use ISPF to edit the allocated data set and enter the JCL control statements into the data set.
    EDIT ---- userid.SORT.JCL ------------------------------------ COLUMNS 001 072
    COMMAND ===>                                                  SCROLL ===> CSR
    ****** ***************************** TOP OF DATA ******************************
    ' ' ' ' ' ' '
    ' ' ' ' ' ' '
    ' ' ' ' ' ' '
    ' ' ' ' ' ' '
    ' ' ' ' ' ' '
    ' ' ' ' ' ' '
    ' ' ' ' ' ' '
    ' ' ' ' ' ' '
    ' ' ' ' ' ' '
    ' ' ' ' ' ' '
    ' ' ' ' ' ' '
    ' ' ' ' ' ' '
    ' ' ' ' ' ' '
    ' ' ' ' ' ' '
    ' ' ' ' ' ' '
    ' ' ' ' ' ' '
    ' ' ' ' ' ' '
    ****** **************************** BOTTOM OF DATA ****************************
  6. If you are currently working on the exercise for creating and entering a JCL job, return to Step 2. edit the JCL data set and add the necessary JCL now.