[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index] [Date Index] [Thread Index]
[SQR-USERS Info] [SQRUG Home Page]

Re: Setting Process Scheduler Status to Error



Look at sqlerr.sqc as an example - basically you have to set some variables
and call Update-Prcs-Run-Status.  If you want to get fancy, you can define a
custom message - you can then set the message-set and message-nbr in your
sqr and have these displayed in the process monitor instead of just saying
'error'.

Thanks,
Andy


-----Original Message-----
From: Shawn Robinson [mailto:Shawn.Robinson@NOTES.OSIPC.CAN.EDS.COM]
Sent: Wednesday, July 14, 1999 3:48 PM
To: Multiple recipients of list SQR-USERS
Subject: Setting Process Scheduler Status to Error


I have developed an SQR, which runs fine in SQRW and from a Custom Run
Control Panel.

Upon completion I successfully update the Process Scheduler to a 'Success'
Status via   do Stdapi-Term

In certain circumstances I want to stop the SQR, see example below, but I'm
not sure how to update the Process Scheduler Status (to ERROR).

Example:

  if $Pay_Confirm_Run = 'Y'
    show 'Cannot Run Process, Payroll has already been confirmed.'
    stop
  end-if

Any help would be appreciated.

Thanks

Shawn R
Information Analyst
EDS Systemhouse Inc.
Shawn.Robinson@notes.osipc.can.eds.com