Products Downloads


French version


 

Error to avoid

Program body:

IF condition

 

INITIALIZE XX

 

PROCESS XX ---------------------

END

|

INITIALIZE YY

|

PROCESS YY

|

*********************

|

TRANSACTION XX

|

*********************

|

IF *CDEnn

|

TERMINATE -----------------------

END

 

etc.

 

 

TERMINATE will not cause the program to stop. The program continues to process the instructions that follow after the PROCESS XX instruction. The reason is that the program exit instruction comes after the PROCESS YY in the generated program.

 

Suggestion to resolve this situation

Program body:

IF condition

INITIALIZE XX

PROCESS XX

ELSE

INITIALIZE YY

PROCESS YY

END

*********************

TRANSACTION XX

*********************

IF *CDEnn

TERMINATE

END

etc.

 

↑ Top of page


  • Aucune étiquette