Macros for SAS Application Developers
https://github.com/sasjs/core
Loading...
Searching...
No Matches
mf_readfile.sas File Reference

Reads the first line of a file using pure macro. More...

Go to the source code of this file.

Detailed Description

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);
Parameters
[in]fpathFull path to file to be read

Related Macros

Version
9.2
Author
Allan Bowe

Definition in file mf_readfile.sas.