Type : EXTERNAL
The code interacts with an external text file (defined by the `dir` and `metafile` parameters) via system commands, not via SAS libraries.
| 1 | %macro AHGshowmeta(entry=,metafile=Mac.meta,dir=&root3/tools); |
| 2 | %local metaName thename thevalue; |
| 3 | %let thename=%scan(&entry,1,^); |
| 4 | %let thevalue=%scan(&entry,2,^); |
| 5 | %let metaName=&dir/&metafile; |
| 6 | %AHGrpipe(grep -i ^&thename\^ &metaName,rcrpipe); |
| 7 | %put ###; |
| 8 | %put &rcrpipe; |
| 9 | %mend; |