Writing to a discarded data file


The RELOAD command can write the segments that contain exceptions, along with their dependents, to an output discard file.

This output file is used to hold data that cannot be reloaded.

The discard file name is specified by using the DISCARD_FILECTL subcommand. This discard file must be a valid file name, and can be predefined or dynamically allocated. The segments that are written to the discard file are in standard variable length record format. For more information about the discard file record layout, see Discard file record layout.

The DISCARD_FILECTL subcommand and the EXCEPTION_LIMIT keyword must be provided to write segments that cannot be reloaded to the discard file. When only the EXCEPTION_LIMIT keyword is provided, the segments that cannot be reloaded are bypassed and are not written to a discard file. For more information about assigning an exception limit, see Assigning-an-exception-limit and Fast Path/EP products reference information.

Note

Only one discard file is created for the input areas that are specified in the RELOAD command.

When segments are written to the discard file, an informational message is written to the PFPPRINT DD, indicating the total number of input area segments that have been discarded and written to the discard file.

Note

Segment exceptions that are excluded by data selection, such as INCLUDE or EXCLUDE, are not written to the discard file.

Examples of writing to a discard file by providing the DISCARD_FILECTL subcommand, along with the EXCEPTION_LIMIT keyword is shown in figure Sample syntax for assigning an exception limit value and in the following figure. For more information about the DISCARD_FILECTL subcommand, see DISCARD_FILECTL.

//DISCARD  DD DISP=(,CATLG,DELETE)DSN=BMCPFP
.reljob.DISCARD,
//         UNIT=SYSDA,SPACE=(CYL,(10,5),RLSE)
//PFPSYSIN DD *
  RELOAD DBD=
dbdname,
      EXCEPTION_LIMIT=INFINITE,
      IAREA=ALL,OAREA=ALL,
      INPUT_DSN_MASK='
input.unload.file'
   DISCARD_FILECTL DDNAME=DISCARD

Note

If you want to reload segment exceptions that have been written to the discard file, you will need to create a user-written program to reload the data. BMC does not supply a program to process the discard file.


Related topic


 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*