The Database One (DB1) context contains the fields that are in the first, or only, format of the access path to which a function is attached.
Any field in the access path format is available for processing in the DB1 context.
The DB1 context is available to all function types that perform update or read functions on a database file after reading and before writing to the database file. Those functions are CRTOBJ, CHGOBJ, DLTOBJ, and RTVOBJ.
In the generated source code, the generated names of fields from the DB1 context are prefixed by the format prefix of the appropriate DBF file.
For example, if the following relations are present in an access path for the Company file:
FIL Company REF Known by FLD Company code CDE FIL Company REF Has FLD Company name TXT
Company name is present in the DB1 context of functions using that access path and can be used in action diagrams (where access to the database is allowed), for example:
WRK. Company name = DB1. Company name <<<
| Copyright © 2011 CA. All rights reserved. | Tell Technical Publications how we can improve this information |