Chapter Contents |
Previous |
Next |
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. (table note 1) | 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); |
SAS creates a file that is named with the appropriate extension for
your operating environment.
Operating Environment Information: The CMS operating environment does not allow write access to an aggregate MACLIB.
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.