|
Macros for SAS Application Developers
https://github.com/sasjs/core |
Reads the first line of a file using pure macro. More...
Go to the source code of this file.
Reads the first line of a file and returns it. Future versions may read each line into a macro variable array.
Generally, reading data into macro variables is not great as certain nonprintable characters (such as CR, LF) may be dropped in the conversion.
Usage:
%mf_writefile(&sasjswork/myfile.txt,l1=some content,l2=more content) %put %mf_readfile(&sasjswork/myfile.txt);
| [in] | fpath | Full path to file to be read |
Definition in file mf_readfile.sas.