You are on page 1of 3

EDIT TRANSACTION FUNCTION: The CA 2E 'Edit transaction' function type defines a program to maintain the records on a specified pair

of header and detail files:the pair must be connected by A CA 2E file-to-file relation. For example an EDTTRN function might be created for 'Order' and 'Order detail' files connected by an 'Owned by' relation. The records from the detail file are displayed as a subfile, which is completely loaded before the transaction is displayed. CA 2E access paths The 'Edit transaction' function is always attached to An CA 2E access path of type 'Span' (SPN) which connects two CA 2E formats with a common partial key. In order to be able to create a 'Span' access path:1. An 'Owned by' or 'Refers to' relation must exist that connects the two CA 2E files whose formats are to be included in the access path. 2. The SPN access path must be created on the 'owning' or 'referred to' file respectively. 3. The CA 2E access path formats must be added explicitly to the SPN access path. Refer to the section on 'CA 2E Access Path Formats' in the CA 2E System/38 ' oncepts Guide' f r an example of this procedure. In addition, for SPN access paths built over a 'Refers to' relation, you must change the default key order on the second access path format, i.e. on the 'EDIT ACCESS PATH FORMAT ENTRIES' display you should specify that the key of the 'referred to' file is to be the major key on the format. Unless you have changed the default options for the function, calls to the default 'Create object', 'Change object' and 'Delete object' tion' function for both the CA 2E files involved in the transaction. These functions will use Update (UPD) access paths. All seven (one external + three header internal + three detail internal) functions will be generated as a single program.

EXECUTE EXTERNAL FUNCTION

The CA 2E 'Execute external function' allows you to specify a HLL program using A CA 2E action diagram. The function is implemented as a separate program, in contrast to the CA 2E 'Execute internal function', which is implemented as in-line code within the source code of the calling function. CA 2E access paths An 'Execute external function' may be attached to any CA 2E access path of type Retrieval (RTV), Resequence (RSQ) or Update (UPD). The choice of access path has absolutely no effect on the function.

EXECUTE INTERNAL FUNCTION The CA 2E 'Execute internal function' allows you to specify a section of an action diagram for repeated use in other CA 2E functions. The function is implemented as in-line code within the source code of the calling function. CA 2E access paths An 'Execute internal function' cannot be attached to any access path, i.e. the access path must be specified as *NONE.

EXECUTE USER PROGRAM The CA 2E 'Execute user program' function allows you to describe the interfaces to a user written HLL program so that it may be referenced by CA 2E functions. Parameters may be specified on the call. CA 2E access paths An 'Execute user program' can be attached to any access path of An CA 2E file, or you may specify *NONE.

'Execute user program' functions should usually be attached to An CA 2E file which contains some or all of the function parameters as CA 2E database fields. If there are no suitable files, it may be worth considering defining a 'dummy file' using a Defined as' relation. PROMPT RECORD:

The CA 2E 'Prompt record' function defines a program to prompt for a list of fields defined by a specified CA 2E access path. The validated parameters can be passed to any other CA 2E function, e.g. a user-defined function to produce a report, submit a job, etc. There is no default action for this CA 2E function type. If you want another CA 2E function to be called once the fields have been validated, you must specify this in the action diagram. CA 2E access paths A 'Prompt record' function may be attached to a Retrieval (RTV) or Resequence (RSQ) access path. This access path will initially determine which fields are to be displayed by the 'Prompt record' function. There is no update processing for this function, unless specifically included in the action diagram by you.

You might also like