No external data read. The written content comes directly from the 'str' parameter provided in the macro call.
1 Code Block
DATA STEP Data
Explanation : Definition of the macro that initializes a DATA _NULL_ step (without creating a SAS table). The 'file' statement points to the target file, and 'put' writes the string.
Copied!
%macro AHGwt(file,str=%str());
data _null_;
file "&file";
put "&str";
run;
%mend;
1
%macro AHGwt(file,str=%str());
2
DATA _null_;
3
file "&file";
4
put "&str";
5
RUN;
6
%mend;
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.