This wizard enables you to obtain descriptions of Data Structures or SQL Database Blocks as COBOL source language in a file. To do so, you must valorize, in this wizard, the parameters of the DATA or the DATASQ Parematerized Input Aids called by the Data Structure and indicate a destination file. Each description thus obtained is stored in a COBOL source library and can be incorporated into programs using the COPY clause. A single Data Structure can be used to generate several different descriptions, each one adapted to a particular need in the programs. (i.e. in FILE SECTION or WORKING-STORAGE SECTION, taking the internal and input formats into account). This file is then available for a subsequent insertion in a Program, through the use of the COPY clause. The file is created in the Navigator view. To see its content, you must right-click on it and choose .
You are free to check or clear the Data Structure(s) you want.
This file must have a .cpy extension. If you have launched the Copybook generation wizard from a selected Data Structure, the filename defaults to the name of this Data Structure. On the other hand, if you have launched the wizard from a location or the Data Structure entity level, the filename defaults to the first Data Structure of the location.
The destination file is created in the Navigator view. By default, it is created in the project and package which already holds the corresponding Data Structure(s).
Value | Meaning |
---|---|
DC1 | Equivalent to DATA C1: Generation of data without the recognition of assigned Text lines |
DC2 | Equivalent to DATA C2: Generation of data with the recognition of assigned Text lines |
DC3 | Equivalent to DATA C3: Besides the generation of Segment Cobol source, generation of the Data Element and Segment description lines in the form of comments which will be used by VAP Connector. |
DC4 | Equivalent to DATA C4 |
DSQC1 | Equivalent to DATASQ C1 |
DSQC2 | Equivalent to DATASQ C2 |
DSQC3 | Equivalent to DATASQ C3 |
DSQC4 | Equivalent to DATASQ C4 |