- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Posted 05-03-2013 11:04 AM
(846 views)
I want to pass a parameter to a macro as follows:
%CreateCSVFile(&OutputDirectory || "FD_Summary.csv", 'InputDataset')
This throws an error. I know I can get around it by saying:
Data _Null_;
Informat OutputFile $200.;
OutputFile = &ExperienceOutput || "FD_Summary.csv";
Call Symput('OutputFile',OutputFile);
Run;
%CreateCSVFile(&OutputFile, 'FD_Summary', 1000);
I'd like to avoid the extra data step if I can though. Is this possible?
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
What about
%createscsvfile(&outputdirectory.FD_summary.csv, inputdataset)