Static vs Dynamic File Allocation
When you want to associate multiple files with a single output, you can use one of two methods to specify the files:
- Use multiple <FILE> tags to specify the files to be created
The easiest way to specify multiple files is to use multiple <FILE> tags. Enrichment will initially write the print stream to the file associated with the first <FILE> tag. When a file break occurs for the output, Enrichment creates the file associated with the next <FILE> tag.
- Use dynamic file allocation
When you use multiple <FILE> tags, you must pre-name and pre-allocate each of the output files. This may be inconvenient or unfeasible. Dynamic file allocation allows you to define the name of the file to be created when a file break occurs.
In dynamic file allocation, the name of the file is assigned by the Output group <DYNAFILE> tag and the parameters necessary to set up the sequential data set are specified by the <ALLOCATE> tag.Note: The <ALLOCATE> tag is valid only with Enrichment on mainframe systems. You can't use dynamic file allocation to create files on tape.