Entry points > Module Supervisor > Standard script SERVJOB 

SETREQ

The SETREQ entry point is triggered during the creation of a request from a job file. It is used to manage process synchronization by retrieving the request number.

Context and operating mode

In the context of the entry point :

  • A trace file is open

The following tables are on line :

Table

Significant content

Table description

ABATRQT [ABR]

No

Batch server (queries)

ABATPAR [ABP]

No

Batch server (parameters)

The SETREQ entry point is inserted into the SERVJOB process right after the creation of the request in the ABATRQT table. This process is called by the batch server and all the global variables of the application are not defined.

The name of the log file of the batch server is contained in the FICTRA variable and it is possible to write into this log file using the STRACE sub-program of the SERVEUR process. The arguments passed in this sub-program are: FICTRA (Alpha), Error number (Integer), Request number (Integer), Comments (Alpha).

FICTRA contains the name of the open log file
JOB contains the name of the job file
APPLI contains the name of the application in which the request is created.

The ABATRQT and ABATPAR tables are opened and registered.