The code generates an external file from a macro parameter, without reading a SAS table.
1 Code Block
MACRO Data
Explanation : Definition of the macro that invokes the operating system to create/overwrite the cmdNo.txt file with the provided value.
Copied!
%macro AHGcmdNo(num);
x "echo &num >&localtemp\cmdNo.txt";
%mend;
1
%macro AHGcmdNo(num);
2
x "echo &num >&localtemp\cmdNo.txt";
3
%mend;
4
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.
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.