Chapter Contents

Previous

Next
rxeval

rxeval



Return a Result Value to REXX

Portability: SAS/C extension


SYNOPSIS
DESCRIPTION
RETURN VALUE
CAUTIONS
EXAMPLE


SYNOPSIS

#include <cmsexec.h>

int rxeval(const char *ptr, unsigned int len);


DESCRIPTION

rxeval assigns len bytes, starting at the location addressed by ptr , to the REXX variable RESULT.

rxeval is similar to the rxresult function except that the value assigned to the REXX variable RESULT can contain embedded NULL characters.


RETURN VALUE

rxeval returns 0 if the value was properly assigned or some nonzero value if the assignment fails.


CAUTIONS

rxeval 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 rxeval 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

#include <cmsexec.h>
char hexdata[4];
int rc;

   /* Note that hexdata can contain any value */
rc = rxeval(hexdata,sizeof(hexdata));


Chapter Contents

Previous

Next

Top of Page

Copyright © 2001 by SAS Institute Inc., Cary, NC, USA. All rights reserved.