DISP=(initial disposition,action at termination,action on abterm)

DISP is short for disposition, and it is used to establish the status of the file at both job start and job end. It has no relevance in respect of processing mode, i.e. INPUT, OUTPUT, or UPDATE, but that can be influenced by the LABEL parameter.

The default action if no abnormal termination value is coded, is to obey the normal completion request. Abnormal terminations includes System Abends, User Abends, and Program Interrupts. Non-zero condition codes are considered normal completion by the system.

 

Initial Status

 

Action at Normal Competion

 

Action at ABTERM

 
 

NEW

 

DELETE

 

DELETE

 
 

OLD

 

KEEP

 

KEEP

 

DISP=(

SHR

,

PASS

,

CATLG

)

 

MOD

 

CATLG

 

UNCATLG

 
     

UNCATLG

     

The values listed in the table above can be mixed as required, provided syntax and logic rules are not contravened.

Copyright © KMS-IT Limited 2002