Chapter Contents |
Previous |
Next |
%SYSCALL |
Type: | Macro statement |
Restriction: | Allowed in macro definitions or in open code |
See also: | %SYSFUNC and %QSYSFUNC |
Syntax | |
Details | |
Example | |
Using the RANUNI Call Routine with %SYSCALL |
Syntax |
%SYSCALL call-routine<(call-routine-argument(s))>; |
Details |
When %SYSCALL invokes a CALL routine, the value of each macro variable argument is retrieved and passed to the CALL routine. Upon completion of the CALL routine, the value for each argument is written back to the respective macro variable. If %SYSCALL encounters an error condition, the execution of the CALL routine terminates without updating the macro variable values, an error message is written to the log, and macro processing continues.
Example |
Note: The syntax for RANUNI is
RANUNI(seed,x).
%let a = 123456; %let b = 0; %syscall ranuni(a,b); %put &a, &b;
The %PUT statement writes the following values of the macro variables A and B to the SAS log:
1587033266 0.739019954
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.