Problem with loading delta.df via a program

m.blankestijn

New Member
Hi there,

I've got this program that loads an delta.df and afterwards compiles some procedures.

To load the delta.df I use loaddf.r.

It works fine for 99,9% of the time.

Sometimes though DB changes are not made and compilation is not executed.

The problem occurs when the delta.df contains an error.

In sequence:

1 Error occurs
2 An alertbox pops demanding to be pressed
3 Program halts due to the unpressed alertbox button
3 The nightly backup procedure kill's all sessions

Is there something I can do to prevent the procedure from waiting for the button to be pressed?

Kind regards,

Marco
 

M-HT

Member
Hi Marco,
Try running loaddf.r from a window which contains a message-area and make sure the SESSION:APPL-ALERT-BOXES is set to FALSE.
It could write the message into the message area instead of to alert-box.
 

M-HT

Member
Another possibility could be to take the source code of loaddf.r, modify if so it wouldn't display alert-box on error and use the modified version instead.
 
When I'm using Load_DF or Load_D I always redirect the standard output, like this:

OUTPUT TO VALUE(cTmpFile) NO-ECHO.
RUN Prodict/Load_DF.p (cDfName).
HIDE MESSAGE NO-PAUSE.
OUTPUT CLOSE.

Br,
Istvan :awink:
 
Top