Products Downloads


French version


 

 

 

Assignment

Transaction templates.

 

 

Use

Generation of instructions at the end of the TRANSACTION section.

 

Click below for more information on generating management rules in programs (generation paragraph, and the generation point within the paragraph):

 


 

Substitution principles

  • The management rule text variables $$Id are replaced by the number of the current transaction.

  • The management rule text variables $(+n) or $(+nn) are replaced by the number of the current transaction plus n (or nn).

  • The management rule text variables $(-n) or $(-nn) are replaced by the number of the current transaction minus n (or nn).

  • The management rule text variables $TransactionTemplate are replaced by the number of the first transaction having this TransactionTemplate. The number is searched for in the successive transactions, starting from the transaction following the current one, and looping back to the beginning once the last transaction has been reached (if current transaction is #2 and the last transaction is #4, then #3, #4, #1, #2 are checked).

 

Examples

Example 1: Program exit test

1. Specification of the management rule:

IF   W_RETURN_CODE = *BLANK

PROCESS $(-1)

ELSE

TERMINATE

END

 

2. Result in the program:

 

TRANSACTION 02

BEGIN_STD_E

IF   W_RETURN_CODE = *BLANK

PROCESS 01

ELSE

TERMINATE

END

END_STD

 

Example 2: Test whether a confirm delete screen is to be displayed

1. Specification of the management rule:

IF   *DEL04 > 0

WRAN04 =1

PROCESS $CONFIRM_DELETE

END

 

2. Result in the program:

TRANSACTION 01

...

BEGIN_STD_E

IF   *DEL04 > 0

WRAN04 =1

PROCESS 02

END

END_STD

 

The first transaction being associated with a CONFIRM_DELETE transaction template is transaction 02.

 

↑ Top of page

  • Aucune étiquette