* Closes the directory and clear the fileref */ * If condition is true print the full name to the log */ * Checks to see if the extension matches the parameter value */ %put Directory &dir cannot be open or does not exist * Assigns a fileref to the directory and opens the directory */ ![]() In addition, SAS Institute will provide no support for the materials contained herein. Not be liable for any damages whatsoever arising out of their use of this material. Recipients acknowledge and agree that SAS Institute shall "as is" without warranty of any kind, either express or implied, includingīut not limited to the implied warranties of merchantability and fitness for a These sample files and code examples are provided by SAS Institute For example, if you want to %INCLUDE each file contained within these directories, you can do this easily by replacing the %PUT statement with the following:įor a quick and easy way to just LIST the files, the following can be used instead of the macro:įilename filelist pipe "dir /b /s c:\temp\*.sas" The %PUT can be replaced with other code to be used on each file. ![]() This macro can be modified to do more than just list the files. The macro contained on the Full Code tab lists all of the files that contain a particular extension within a directory and all sub-directories.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |