Page 1 sur 1

Comportement active group

Posté : mar. 01 déc. 2015, 11:30:58
par manae
Bonjour,

est-il possible de changer la validation (commit) des modifications BD lors de la sortie d'un active groupe particulier ?

Cordialement.

STRCMTCTL

Posté : mar. 01 déc. 2015, 15:14:17
par cmasse
Je ne suis pas sur de comprendre.

vous voulez Commiter une transaction (par défaut) lors de la fin d'un groupe d'activation ?


La fin, par défaut, d'une transaction, sans écrire explicitement COMMIT est toujours ROLLBACK.

Posté : mar. 01 déc. 2015, 16:23:48
par manae
pourtant en regardant le job on a ce message

Validation effectuée avant la fin du contrôle de validation. Code raison 03.

et le code raison 03 c'est :

03 -- La définition de validation du groupe d'activation se termine
normalement avec des modifications en instance. Une validation implicite
est effectuée.

Commit implicite

Posté : mar. 01 déc. 2015, 17:23:51
par admin
Effectivement en cas de fin normale du groupe d'activation le système COMMIT, contrairement au groupe d'activation par défaut (et a fortiori au JOB)


Code : Tout sélectionner

The system automatically ends an activation-group-level commitment definition when an activation groupends. If pending changes exist for an activation-group-level commitment definition and the activation group is ending normally, the system performs an implicit commit operation for the commitment definition before
it is ended. Otherwise, an implicit rollback operation is performed for the activation-group-level commitment
definition before being ended if the activation group is ending abnormally, or if errors were encountered by
the system when closing any files opened under commitment control scoped to the activation group.

Code : Tout sélectionner

Note:
An implicit commit or rollback operation is never performed during activation-group end processing for the *JOB or *DFTACTGRP commitment definitions. This is because the *JOB and *DFTACTGRP commitment definitions are never ended due to an activation group ending. Instead, these commitment definitions are either
explicitly ended with an ENDCMTCTL command or ended by the system when the job ends.
On en apprend tous les jours...

http://publib.boulder.ibm.com/iseries/v ... /rzakj.pdf , page 56.