03.03.2015 Views

CA Dynam for VSE User Guide

CA Dynam for VSE User Guide

CA Dynam for VSE User Guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>Dynam</strong>ic File Sorting<br />

Control characters <strong>for</strong> DTFPR (printer) files are inserted if not present, and<br />

control characters <strong>for</strong> DTFCD (punch) files are removed if present. <strong>CA</strong><br />

<strong>Dynam</strong>/FI only supports printer files using ASA or machine control characters.<br />

When the simulation is invoked <strong>for</strong> files not con<strong>for</strong>ming to this rule,<br />

unpredictable results occur.<br />

The LIOCS functions provided by the CNTRL and PRTOV macros are not<br />

supported. There<strong>for</strong>e, programs which depend upon CNTRL and PRTOV<br />

support cannot use this simulation. (This includes the COBOL 'EOP' condition.)<br />

DTFCPs that use system logical units, and process unit record I/O, can<br />

normally be processed by <strong>CA</strong> <strong>Dynam</strong>/FI; DTFCPs that use programmer logical<br />

units, such as SYS001, cannot. This means that compiler and Assembler work<br />

files may not be processed by <strong>CA</strong> <strong>Dynam</strong>/FI.<br />

<strong>Dynam</strong>ic File Sorting<br />

<strong>Dynam</strong>ic file sorting lets you sort records on input or output while<br />

manipulating/processing them in a user program written in Assembler, COBOL,<br />

and so on. <strong>CA</strong> <strong>Dynam</strong>/FI does this by interfacing with <strong>CA</strong> SRAM (Sort<br />

Reentrant Access Method). The procedure is transparent to the user program<br />

since all <strong>CA</strong> SRAM specifications are made on the DLBL or TLBL rather than<br />

within the program. <strong>CA</strong> <strong>Dynam</strong>/FI sends in<strong>for</strong>mation to <strong>CA</strong> SRAM to define how<br />

files are to be sorted, and intercepts the records at GETs and PUTs <strong>for</strong> <strong>CA</strong><br />

SRAM calls.<br />

For this facility to work, both <strong>CA</strong> <strong>Dynam</strong>/FI and <strong>CA</strong> SRAM must be active and<br />

supported. The Programming <strong>Guide</strong> explains how this is done. For more<br />

in<strong>for</strong>mation, see the DYNAM/FI installation option record.<br />

On the DLBL or TLBL statement, indicate whether you are sorting on input<br />

(SORTIN) or on output (SORTOUT) and what sort key fields are to be used.<br />

The sort key field(s) may be defined on the xLBL statement or may reside in<br />

the Catalog as a sort key name (SKNAME). A cataloged sort key name<br />

provides greater flexibility:<br />

• Different files may use the same sort key.<br />

• A larger number of <strong>CA</strong> SRAM options may be defined.<br />

• A sort key is only defined once and easily maintained with DYN<strong>CA</strong>T.<br />

For more in<strong>for</strong>mation about defining and maintaining SKNAMEs, see the<br />

DYN<strong>CA</strong>T utility.<br />

On the DLBL or TLBL statement you may also indicate the file name and logical<br />

unit <strong>for</strong> the sort work file (SORTWRK). If you omit the SORTWRK parameter,<br />

the file name WORK01 on SYS001 is assumed.<br />

6–8 <strong>User</strong> <strong>Guide</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!