|
Sybernet / Supplied Functions Reference
Release 3.00 Oct 14, 2002 |
|
This function allows your stored procedure to wait for the completion of a procedure submitted to Sybercron.
FUNCTION SP_CRON_WAIT
(
ROW_ID NUMBER
)
RETURN NUMBER;
| Parameter | Description |
|---|---|
row_id |
The ROW_ID returned from SP_CRON_INSERT. |
For stored procedures 0 if successful. For UNIX executables the exit status.
The following example illustrates how to call sp_cron_wait:
declare
row_id binary_integer;
begin
row_id:=http.sp_cron_insert
(
PROCNAME => './HelloWorld'
, SCRIPTNAME => '../htdocs/datafile'
) ;
if (http.sp_cron_wait(row_id) = 0) then
http.write('Success!');
else
http.write('Oops!');
end if;
end;