[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index]
[Date Index]
[Thread Index]
[SQR-USERS Info]
[SQRUG Home Page]
Re: Is it possible...
- Subject: Re: Is it possible...
- From: "Fay, Brannon" <brannon.fay@PAETEC.COM>
- Date: Thu, 2 Sep 1999 11:12:37 -0400
Yes, David, it is possible. The reserved variable is #return-status. On
page 14 of the SQR Language Reference Version 4, sorry don't have version 3
and I don't know what version you are on, #return-status is defined along
with the other SQR predefined/reserved variables. It is defined as follows:
"Value to be returned to the operating system when SQR exits. May be set in
your report. " ****-> "#return-status is initialized to the 'success'
return value for the operating system."
I modified my own code, running on Unix as well, to move 1 to #return-status
as my first line in my 'Main' procedure and move 0 to #return-status as my
last line. This way if it fails anywhere in between, whether the error was
handled or not, the c++ program that calls the sqt will know whether or not
the SQR program actually did finish successfully.
hth,
Brannon J. Fay
Junior Software Engineer
PaeTec Communications, Inc.
(716)340-2629
(877)472-3832
-----Original Message-----
From: David Fordham [mailto:dfordham@SUMMITTECH.COM]
Sent: Thursday, September 02, 1999 10:54 AM
To: Multiple recipients of list SQR-USERS
Subject: Is it possible...
Hi all,
Is it possible to get an SQR to return a value to a unix shell script
that called the SQR??
TIA,
David Fordham
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
S U M M I T T E C H N O L O G I E S, I N C.
http://www.summittech.com dfordham@summittech.com
8921 E Chenango Ave 303.740.8791
Greenwood Village, CO 80111 888.833.7360 Toll Free
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~