O'Reilly logo

SAS 9.4 Macro Language, 5th Edition by

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Index
Special Characters
/NOSECURE option
error message 426
/SECURE option
error message 426
/SOURCE option
error message 425, 426
. (period)
creating, to follow resolved text 35
. (period) delimiter 13
& (ampersand)
indirect macro variable references and
37
& (ampersand) delimiter 4
% (percent sign)
with %STR and %NRSTR functions 88
% (percent) delimiter 4
%* macro comment statement 304
%ABORT statement 302
error message 423, 424, 427
%BQUOTE and %NRBQUOTE functions
260
%BQUOTE function 91
examples 91
%BY statement
error message 401
%CMPRES and %QCMPRES autocall
macros 179
%COMPSTOR autocall macro 181
%COPY statement 306
error message 424, 425
%DATATYP autocall macro 181
%DISPLAY statement 307
error message 406, 408, 410, 411, 412
%DO %UNTIL loop
error message 413
%DO %UNTIL statement 311
%DO %WHILE loop
error message 413
%DO %WHILE statement 312
%DO groups
ending 313
%DO loop
error message 405, 408
%DO loops
generating repetitive pieces of text 12
%DO statement 308
error message 398, 399, 401, 402, 403,
404
%DO, iterative statement 309
%ELSE statement
error message 398, 399
%END statement 313
error message 398, 399
%EVAL function 261
error message 393, 395, 397, 403, 405
%GLOBAL statement 314
error message 398, 427
%GO
error message 407
%GOTO statement 316
destination of 321
error message 399, 400, 407
%IF statement
error message 395, 398, 399, 403
%IF-%THEN/%ELSE statement 317
%INCLUDE statement 4
%INDEX function 263
%INPUT statement 320
text entered in response to 199
warning message 433
%KVERIFY autocall macro 182
%label statement 321
%LEFT autocall macro 183
%LENGTH function 263
%LET statement 322
error message 418, 419
%LIST statement 4
%LOCAL statement 323
error message 399, 427
%LOWCASE and %QLOWCASE
autocall macros 184
%MACRO statement 325
error message 397
PARMBUFF option 329
SECURE option 330
SOURCE option 330
STORE option 330
487
with keyword parameters 329
with positional parameters 328
%MEND statement 331
error message 397
warning message 430, 431
%NRBQUOTE function 91, 264
%NRQUOTE function 264
%NRSTR function 87, 265
examples 90
unmatched quotation marks and
parentheses 88
%PUT statement 332
error message 428
tracking problems with 140
%QCMPRES autocall macro 185
%QLEFT autocall macro 185
%QLOWCASE autocall macro 186
%QSCAN function 265
%QSUBSTR function 265
%QSYSFUNC function 266
error message 415, 416, 418, 420
warning message 433
%QTRIM autocall macro 187
%QUOTE and %NRQUOTE functions
266
%QUPCASE function 267
%RETURN statement 335
%RUN statement 4
%SCAN and %QSCAN functions 268
%STR and %NRSTR functions 272
%STR function 87
examples 89
percent signs with 88
unmatched quotation marks and
parentheses 88
%SUBSTR and %QSUBSTR functions
275
%SUPERQ function 277
entering macro keywords 95
examples 93
preventing warning messages 94
%SYMDEL statement 336
warning message 434
%SYMEXIST function 278
%SYMGLOBL function 279
%SYMLOCAL function 280
%SYSCALL statement 336
error message 416, 418, 420, 422
RANUNI CALL routine with 338
%SYSEVALF
error message 416
%SYSEVALF function 281
error message 417, 420
%SYSEXEC statement 338
%SYSFUNC and %QSYSFUNC
functions 283
%SYSFUNC function
error message 415, 416, 418, 420
formatting values produced by 285
functions and arguments for 439
portable functions with 150
warning message 433
%SYSGET function 287
warning message 432
%SYSLPUT statement 339
error message 422, 423
%SYSMACDELETE statement 341
warning message 435
%SYSMACEXEC function 288
%SYSMACEXIST function 288
%SYSMEXECDEPTH function 288
%SYSMEXECNAME function 290
%SYSMSTORECLEAR statement 342
warning message 435
%SYSPROD function 291
%SYSRC autocall macro 187
%SYSRPUT statement 342
checking return code values on remote
host 113
error message 413, 418, 419
with SAS/CONNECT interfaces 113
%THEN statement
error message 399, 406
warning message 433
%TO statement
error message 402
%TRIM and %QTRIM autocall macro
192
%UNQUOTE function 292
%UPCASE and %QUPCASE functions
293
%VERIFY autocall macro 194
%WINDOW statement 345
error message 406, 408, 411, 412
A
aborting macros 302
ampersand (&) delimiter 4
ampersands
indirect macro variable references and
37
application welcome window 350
arguments
left-aligning 183, 185
arithmetic expressions 73
defining 74
evaluating 74, 76
evaluating with floating-point arithmetic
281
evaluating with integer arithmetic 261
operands and operators 75
488 Index

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required