SUPPORT / SAMPLES & SAS NOTES
 

Support

Sample 43295: Using macro variables within a CARDS/DATALINES statement

DetailsCodeResultsAboutRate It

The sample code on the Full Code tab uses the RESOLVE function to resolve macro variables that were specified within a CARDS/DATALINES statement.

It also uses the QUOTE function to place double quotes around the DATA step's variable value.

The RESOLVE function then returns the resolved value of the argument after it has been processed by the macro facility.

Finally, the DEQUOTE function is used to remove the double quotation marks placed on the string by the QUOTE function.

For a reason why macro and CARDS/DATALINES do not work together, see SAS Note 43902.




These sample files and code examples are provided by SAS Institute Inc. "as is" without warranty of any kind, either express or implied, including but not limited to the implied warranties of merchantability and fitness for a particular purpose. Recipients acknowledge and agree that SAS Institute shall not be liable for any damages whatsoever arising out of their use of this material. In addition, SAS Institute will provide no support for the materials contained herein.