[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
- Subject: Re: Setting Process Scheduler Status to Error
- From: "Johnson, Dan" <Dan_Johnson@WRIGHTEXPRESS.COM>
- Date: Thu, 15 Jul 1999 09:24:11 -0400
We use 'Control M' as our process scheduler and by setting the SQR variable
#return-status to a recognized error code just before your stop command your
process scheduler should pick this up.
Example:
if $Pay_Confirm_Run = 'Y'
show 'Cannot Run Process, Payroll has already been confirmed.'
move #error_code to #return-status
stop
end-if
Dan Johnson
-----Original Message-----
From: Shawn Robinson [SMTP: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