EXEC_ETA

Description

This action is called only on the condition that the controls are carried out successfully. It s executed after the display of the message. This action is important because it makes it possible to place the users procedural process in it.

Template

Standard process (interactive and batch mode)

Use

This action is used to execute a procedural process.

   The management of the log file is carried out in the following fashion :  

Opening and closing of the log file only in interactive mode (in batch mode, this is controlled by the supervisor).
If !GSERVEUR : Call OUVRE_TRACE("titre") From LECFIC : Endif      # for the opening of the log file
If !GSERVEUR : Call FERME_TRACE From LECFIC : Endif                     # for the closure of the log file

The write to the log file is made in interactive and batch mode.
Call ECR_TRACE("message",0) From GESECRAN                                         # for an information message
Call ECR_TRACE("message",1) From GESECRAN                                         # for an error message

The display mode of the log file at the process end must be indicated in the variable TRA, which can take one of the following values :

0

No display and saving of the log file

1

Display then saving of the log file

9  

Display then deletion of the log file

   To update the data in the database, open the transaction with Trbegin then close it with Commit.   

  An error message can be displayed with GERR = 1 and a text in GMESSAGE.

  The user can stop the process with FIN = 1.

  When in interactive mode the user can return to the entry (just before the action AVANT_PAR )  with SAI = 1.