The %MACRO statement creates the macro PRINTALL. When you call the macro, you can pass it one or two parameters. The first parameter is the name of the library whose data set you want to print. The second parameter is a library used by the macro. If you do not specify this parameter, the WORK library is the default.
%macro printall(libname,worklib=work);