Previous Topic: 4.5.2 Creating Unit-level Catalog Entries

Next Topic: 4.5.4 Input/Output Formats

4.5.3 Creating Catalog Entries During Operational Jobs


CA MICS generation processes like JCLGEN and cccCGEN use the
LOCKIT data set to ensure that jobs that update Format
catalogs do not backlevel each other.  The CA MICS
operational jobs cannot use this same serialization technique
because it would prevent multiple units from being updated at
the same time.
 
If you have a requirement to create a permanent SAS Format
during execution of one of the CA MICS operational jobs, like
DAILY, the following technique can be used:
 
  o Create a special SAS data library in which to store your
    Formats.
 
  o Add a LIBRARY DD with DISP=OLD to the operational steps
    that require update access to the Format catalog.
 
    Example:
        //DAY030 EXEC MICSDBP
        //LIBRARY  DD DISP=OLD,DSN=MYLIB.USER.FORMATS
        //INPUTSMF DD .....
 
    o Update your user code that generates the permanent
      Format to direct PROC FORMAT to output Formats to the
      LIBRARY DD by adding the LIBRARY=LIBRARY.FORMATS
      option.
 
      Example:
        PROC FORMAT LIBRARY=LIBRARY.FORMATS;
 
    o Add a LIBRARY DD with DISP=SHR to any other job steps
      that require read access to the Format catalog.
 
      Example:
        //DAILYRPT EXEC MICSSHRP
        //LIBRARY  DD DISP=SHR,DSN=MYLIB.USER.FORMATS
        //SYSIN    DD .....
 
CA MICS will automatically add the LIBRARY.FORMATS catalog to
the SAS FMTSEARCH option for you.  Please note that
LIBRARY.FORMATS is searched after MCOLIB and MUOLIB, so the
names of the Formats placed there must not exist in any of
the other standard Format catalogs.  Also, the catalog name
must be FORMATS or it will not be searched.