Select Page

When dealing with a Pooled Workspace Server, a generic ‘host account’ is normally used.  So you tend not to have individual host accounts to log in with.  Therefore, sometimes the only way to navigate the server is to use EG!  Hence this piece of code (used to grep files but can be easily modified for other commands)..

%macrogrep(loc,string);
filename x pipe “cd &loc; grep -irl &string .”;
data _null_;
infile x;
input;
put _infile_;
run;
%mend;
/* check logs */
%grep(C:myDirLoc,searchString)