|
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 dlbl_ environment variables. Through these environments you can associate the data file-names used in your program with the cluster name - in case of VSAM files - or physical names - in case of standard UNIX files -. Just remember to code the clause EXTERNAL in your ASSIGN TO statements. The association between cluster name and physical file name whenever necessary will be provided by the xrun interface. As described above, the physical name of a file is specified using an environment variable, therefore all corresponding environment variables for the referenced files must be exported / set before the program is executed. The environment variable referring to a file link must be named: dlbl_<FILENAME> where FILENAME is the internal name of the file, and its value must contain the following infomation:
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). Example //EXEC PGM=MERGE01 becomes setenv dlbl_INPUT1 "FILE1.KSDS,disp=(OLD,KEEP,KEEP),type=vsam" and the COBOL code: INPUT-OUTPUT SECTION.
|