You can use an optional subscript with the LOC-CTRL field to specify placement of multiple CALC key names within the record description in the Cross-Reference Report. 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) positions the first CALC key found in the dictionary for each record type. LOC-CTRL(2) positions 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 places all CALC keys in the record description in the Cross-Reference Report beginning at the position indicated by LOC-CTRL(N). The first CALC key appears 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 appear one per line, starting with the position indicated by LOC-CTRL(N).
When you do not use LOC-CTRL(N) and there are more CALC keys than you have explicitly positioned, the additional CALC keys do not appear in the record description. An informative message appears 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 XRECLINE statements, then the fourth and fifth CALC keys do not appear in the record description in the Cross-Reference Report.
Also, LOC-CTRL(N) affects only CALC keys that follow the highest explicit position. If any lower subscripts are omitted from the XRECLINE statements, the corresponding CALC keys do not appear in the Cross-Reference Report. For example, if a record has seven CALC keys and the XRECLINE 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 do not appear in the Cross-Reference Report. Any CALC key that does not appear in the Cross-Reference Report, for any reason, are listed in the Audit Report with an informative message.
CA IDMS Schema Mapper makes all record descriptions the same size (remember, XRECLINE 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 description, then every record description in the Cross-Reference Report contains space for multiple CALC keys. This is true even if a particular record type does not have a location mode of CALC.
|
Copyright © 2013 CA.
All rights reserved.
|
|