Wanted to do a number of runs, one per SAS session. Quit SAS. Back in. Run another program, or same program with different parameters.
Wanted a different "print output" file each time. (Not the same as log. And not same as .html)
Accumulate a set of these print output files, then look them over.
SAS seems to have no way of directly allowing this. (Yes, for log files... via %v -- but strange, at that.)
So, SAS documentation says, go ahead and use Windows Environment Variables for or within SAS file names.
Hmm. Sounded like a solution.
%random% is an internal, built-in WEV. Tried it in SAS.
SAS System Option File entry:
-ALTPRINT "c:\0_SAS_1\output_%random%.txt"
and
-ALTPRINT "c:\0_SAS_1\output_random.txt"
Along with other WEV attempts.
Nothing worked.
So, again, the idea was to create output files, one after another, per SAS 'session', named uniquely. (Current time would be perfect, by the way, but 'random' would work.)
Any suggestions greatly appreciated.
Nicholas Kormanik
... View more