|
DD & DLBL |
|
|
Both DD & DLBL define the file association between the program internal file name and the external one. In the XFRAME Batch Environment, the are replaced by the dd function. Through this function you can bind the data file-names used in your program with the cluster name - in case of VSAM files - or physical names - in case of standard Windows files -. Just remember to code the clause EXTERNAL in your ASSIGN TO statements. The function dd must be invoked providing:
The link value string must contain the following information:
according to this syntax: "<cluster>[,cat=<catalog>],type=(flat|vsam)[,disp=<dispositions>][,gdg=<version>] where:
Dispositions are expressed in a similar way as in the VSE/MVS environment: (<start-state>,<exit-state>,<fault-state>) where <start-state> indicates the initial state of the required file for further execution of the program:
Both <exit-state> and <fault-state> indicate the states of file after execution, in case of normal and abnormal termination:
The default value for disposition is (OLD,KEEP). Binding a file To bind a file, internal filename and external file information must be provided: // SRC: //FILEIN DD DSN=WKCAT.FI.ROW,DISP=(OLD,KEEP) Binding a file with INSTREAM data The binding of a file with INSTREAM data, is performed by the inStream function // SRC: //SYSIN DD * Binding a file with multiple files The mainframe environment allows to bind a file with more than one, eventually adding INSTREAM data too. The binding of multiple files is performed through the WorkFile objects. // SRC: //FILEIN DD DSN=MY.FILE.NT1 |