The output dataset is created internally by the macro from a list of files obtained directly from the Unix/Linux file system via the 'LS -1' command. The data does not come from pre-existing external SAS sources to the script, but is generated from operating system information.
1 Code Block
MACRO Data
Explanation : This block defines the `%ls2ds` macro. It handles an optional `dsout` parameter, assigning it the default value `_ls2ds` if none is provided. It then calls the `%ls2sas` macro, which is supposed to contain the actual logic to query the file system and create the SAS dataset from the file pattern and output dataset name.
This material is provided "as is" by We Are Cas. There are no warranties, expressed or implied, as to merchantability or fitness for a particular purpose regarding the materials or code contained herein. We Are Cas is not responsible for errors in this material as it now exists or will exist, nor does We Are Cas provide technical support for it.
Copyright Info : This software is in the public domain. No warranty as to its suitability or accuracy is given or implied. The user uses this code entirely at their own risk.
SAS and all other SAS Institute Inc. product or service names are registered trademarks or trademarks of SAS Institute Inc. in the USA and other countries. ® indicates USA registration. WeAreCAS is an independent community site and is not affiliated with SAS Institute Inc.
This site uses technical and analytical cookies to improve your experience.
Read more.