Many base procedures require an input SAS data set. You specify the input SAS data set using the DATA= option in the procedure statement, for example, proc print data=emp; If you omit the DATA= option ...
This example prints all the data sets in a SAS library. You can use the same programming logic with any procedure. Just replace the PROC PRINT step near the end of the example with whatever procedure ...