| local-fileref | specify the name of a local fileref. The contents of the fileref are read and copied to a temporary fileref and then made available to the stored process. The short form of the INPUTFILE statement, INPUTFILE stored-process-file;, is equivalent to INPUTFILE stored-process-file=stored-process-file;. |
| “local-file-path” | specify the path of a local file. A fileref is assigned for the stored process to access the file directly. |
PROC STP PROGRAM="/Products/SAS Intelligence Platform/Samples/
Example Stored Process";
INPUTFILE FILE1; /* copies data from local FILE1 fileref
to stored process FILE1 fileref */
INPUTFILE FILE2=MYFILE; /* copies from local MYFILE fileref
to stored process FILE2 fileref */
INPUTFILE FILE3="/tmp/data3.csv"; /* copies /tmp/data3.csv to stored
process FILE3 fileref */
...
RUN;filename incsv 'c:\johndoe\data\class.csv'; PROC STP PROGRAM="/Users/johndoe/procstp/readCSV"; inputfile incsv; run;
/* Take CSV file and put it into a data set */
proc import datafile="%sysfunc(pathname(incsv))"
out=work.mydata dbms=csv replace;
getnames=yes;
run; quit;
/* Run PROC MEANS on the data set created from the CSV file */
proc means data=work.mydata n mean stddev;
class sex;
var age height weight;
run; quit;
...