You can use an optional subscript with the LOC-CTRL field to specify placement of multiple CALC key names within the record block in the data structure diagram. The syntax is:
LOC-CTRL(ss)
where ss may be an integer from 1 to 256 or the capital letter N.
When you use an integer from 1 to 256, you are explicitly placing the CALC keys you want to see at the positions you specify. For example, LOC-CTRL(1) will position the first CALC key found in the dictionary for each record type. LOC-CTRL(2) will position the second CALC key, etc. If you use LOC-CTRL without a subscript, it is equivalent to LOC-CTRL(1).
When you use only the letter N, CA IDMS Schema Mapper will place all CALC keys in the record block in the diagram beginning at the position indicated by LOC-CTRL(N). The first CALC key will appear at that position followed by the remaining CALC keys one per line.
You can choose to explicitly place one or more CALC keys and have CA IDMS Schema Mapper implicitly place the remaining ones. Any CALC keys that have not been positioned by an explicit subscript will appear one per line, starting with the position indicated by LOC-CTRL(N). See Sample DRECLINE Statements and Resulting Record Blocks.
When you do not use LOC-CTRL(N) and there are more CALC keys than you have explicitly positioned, the additional CALC keys will not appear in the record block. An informative message will appear in the Audit Report to let you know this has happened. For example, if one of your record types has five CALC keys, but you only use LOC-CTRL(1), LOC-CTRL(2), and LOC-CTRL(3) in your DRECLINE statements, then the fourth and fifth CALC keys will not appear in the record block in the data structure diagram.
Also, LOC-CTRL(N) affects only CALC keys that follow the highest explicit position. If any lower subscripts are omitted from the DRECLINE statements, the corresponding CALC keys will not appear in the diagram. For example, if a record has seven CALC keys and the DRECLINE statements use LOC-CTRL(1), LOC-CTRL(4), and LOC-CTRL(N), then LOC-CTRL(N) positions CALC keys 5, 6, and 7 only. CALC keys 2 and 3 will not appear in the diagram. Any CALC key that does not appear in the diagram, for any reason, will be listed in the Audit Report with an informative message.
CA IDMS Schema Mapper makes all record blocks the same size (remember, DRECLINE is a global parameter). Therefore, if only one of your record types contains multiple CALC keys and you want all the keys for that record type to appear in the record block, then every record block in the diagram will contain space for multiple CALC keys. This is true even if a particular record type does not have a location mode of CALC.
By default, CA IDMS Schema Mapper uses LOC-CTRL(N). Therefore, all default record blocks contain space for all CALC keys.
|
Copyright © 2013 CA.
All rights reserved.
|
|