The physical information necessary to generate the Database block is entered on the -GG Lines section associated with the Block in the -G lines tab, in order to complement the logical information entered on the Database Block Definition.
Several virtual documentation lines are associated with an 'IP'- or 'IS'-type Database Block. VA Pac does not have the necessary information to determine the characteristics of a given Index (ACCESS, PASSWD, DATASET, etc.). Therefore, the generated virtual lines must be completed by the user to provide this information.
The definition of a 'DR'-type block is identical to that of a 'DP'-type block. All of the Data Elements called into a Segment used in a 'DP'-TYPE Database Block are generated as 'FIELD' statements. You may want to reduce the DBD description to just those Data Elements used as access keys. With the 'DR'-type Database Block, it is possible to generate as 'FIELD' statements only the Data Elements which are identified by an alphanumeric character in the Acess Key field, labeled 'K', on the Segment's -CE Lines tab. The Virtual lines are identical to those of the ″DP″-type Database Block.
The generated lines (Block Name and 'ACCESS=LOGICAL″) are sufficient and do not have to be rewritten by the user.
G RECORD < RECORD NAME >G RECORD SS00
G RECORD < RECORD NAME > . G FILE IS < FILE NAME > . G KEY-SEQUENCED . G ---> ELEMENT INSERTION BEGINING <--- G<NUCLIE> G 10 NUCLIE PICTURE X(8). G ---> ELEMENT INSERTIOM END <--- G KEY IS < FIELD NAME > .
The Data Element code is indicated between the < and > symbols on a general documentation line of the affected entity:<datel >. This notation is taken into account in the Data Element utilization definition. In a dataset or a ″remap″ description, the Data Element marked this way does not interfere in the generation and must not have any line type. For ″access″, set and subset, Data Elements marked this way are taken into account for the generation and they must have a type.
Most often, this is performed from column two. If the data description starts in column one, a semi-colon line is inserted before the line generated for this data.