2.4.1.14.3 Description
m_FileAssign assigns a file. If assigning a file
triggers the creation of a file, the creation process precedes the
assign itself.
Specific cases are:
- New files (
DISP=NEWparameter). - Concatenated files (DD cards, where only the first one contains a label). In this case a concatenation is made in a temporary file, the original DSNAME is replaced by the name of the temporary file.
- Override files (file override in the JCL); a specific assign function
m_FileOverrideis used. This function call is implanted in each STEP required, before the execution of the program. - In the case where a file assign contains a
DISP=NEW,DELETE,DELETEparameter, a delete process is added to the end (normal and abnormal) of the step. - For the
DISP=OLDandDISP=PASSoptions, the file is kept. - For the
DISP=MODoption, the write to the file is made in a temporary intermediary file, then by a copy inExtendon the original file. - In one step, if a
DDNAMEis defined more than one time bym_FileAssign, only the first one takes effect. The disposition specified for the formerDSNAMEis also discarded.
Parent topic: m_FileAssign