member-name | specify a one- or two-level name of a SAS data set or view. The stored process accesses the data file directly through a temporary libref. |
“data-set-path” | provide alternate syntax for specifying a local data set. As with the member-name syntax, the stored process accesses the data file directly through a temporary libref. |
_TARGET_
, in order to be compliant with
how data targets are handled in SAS Management Console.
/* Create a libref in the proc stp environment */ libname mylib 'c:\johndoe\temp'; /* Run a stored process that creates a dataset */ PROC STP PROGRAM="/Users/johndoe/procstp/createData"; /* Pass in a reference, "outdata" to the dataset */ outputdata outdata=mylib.employees; run; /* After the stored process creates the dataset, print it in our local environment */ proc print data=mylib.employees; Title 'Our Employees'; run; quit;
/* Run a stored process that creates a dataset */ PROC STP PROGRAM="/Users/johndoe/procstp/createData"; /* Pass in a reference, "outdata" to the dataset */ outputdata outdata=work.employees; run; /* After the stored process creates the dataset, print it in our local environment */ proc print data=work.employees; Title 'Our Employees'; run; quit;