Skip to Main Content
SAS 9.4 Language Reference, Second Edition
book

SAS 9.4 Language Reference, Second Edition

by SAS Institute
December 2013
Intermediate to advanced content levelIntermediate to advanced
824 pages
24h 21m
English
SAS Institute
Content preview from SAS 9.4 Language Reference, Second Edition
Table 37.3 Referencing Many Files Efficiently
External File
Task Tool Example
Assign a fileref to
aggregate storage
location.
FILENAME
filename mydir 'directory-or-PDS-name';
Specify the file
that contains
input data.
INFILE
data weight;
infile mydir(qrt1.data);
input idno $ week1 week16;
loss=week1-week16;
Specify the file
that the PUT
statement writes
to.
*
FILE
file mydir(awards);
if loss ge 5 then put idno loss
'AWARD STATUS=3';
else if loss ge 10
then put idno loss 'AWARD STATUS=2';
else if loss ge 15
then put idno loss 'AWARD STATUS=1';
run;
Bring statements
or raw data from
another file into
your SAS job and
execute them.
%INCLUDE
%include mydir(whole.program); ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

What's New in SAS 9.4

What's New in SAS 9.4

SAS Institute
Fiber Optic Cabling, 2nd Edition

Fiber Optic Cabling, 2nd Edition

Barry Elliott, Mike Gilmore

Publisher Resources

ISBN: 9781629590004