Consultor Eletrônico



Kbase P65592: Normal end of a batch process
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   16/10/2008
Status: Unverified

GOAL:

Normal end of a batch process

FIX:

A batch program will end normally when its code has an end programmed.
The statement QUIT will exit from Progress.

The following program "loop.p" run in batch mode, with for example command "mbpro sports2000 -p loop.r" will end normally after a period around 1000 seconds.
/* loop.p */
DEF VAR i AS INT.

DO i=1 TO 999:
PAUSE 1 NO-MESSAGE.
END.

QUIT.
/* end loop.p */

The following program will end normally, a bit before 1:30 PM.
/* till1330.p*/
DEF VAR i AS INT.

i = TIME.
DO WHILE i < 48500 :
PAUSE 60.
i = TIME.
END.

QUIT.
/* end till1330.p */