Chapter Contents |
Previous |
Next |
rxresult |
Portability: | SAS/C extension |
SYNOPSIS | |
DESCRIPTION | |
RETURN VALUE | |
CAUTIONS | |
EXAMPLE |
SYNOPSIS |
#include <cmsexec.h> int rxresult(const char *str);
DESCRIPTION |
rxresult
assigns the string addressed by
str
to the REXX variable RESULT. (To set the REXX variable RC, use
the
cmsshv
function.)
RETURN VALUE |
rxresult
returns
0
if the value was properly assigned or some nonzero value if the assignment
fails.
CAUTIONS |
rxresult
can be used only in conjunction with the
cmsrxfn
function. If the return value from a
function called from REXX is not
0
, then the value assigned by
rxresult
is ignored.
If both
rxresult
and
rxeval
are used in the same function, the last value assigned by either function
is the value assigned to RESULT.
EXAMPLE |
An example of the use of
rxresult
is included in the
result
function of the sample program that follows
these function descriptions.
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright © 2001 by SAS Institute Inc., Cary, NC, USA. All rights reserved.