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=NEW
parameter). - 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_FileOverride
is 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,DELETE
parameter, a delete process is added to the end (normal and abnormal) of the step. - For the
DISP=OLD
andDISP=PASS
options, the file is kept. - For the
DISP=MOD
option, the write to the file is made in a temporary intermediary file, then by a copy inExtend
on the original file. - In one step, if a
DDNAME
is defined more than one time bym_FileAssign
, only the first one takes effect. The disposition specified for the formerDSNAME
is also discarded.
Parent topic: m_FileAssign