SASUnit Examples  Version 1.2
_sasunit_tempfilename.sas File Reference

creates a unique name for a temporary dataset in the form WORK.DATAxxx, where xxx is a consecutive integer. More...

Go to the source code of this file.

Detailed Description

creates a unique name for a temporary dataset in the form WORK.DATAxxx, where xxx is a consecutive integer.

The calling program will create a dataset with this name. All of these temporary datasets can be deleted at the end of the calling macro by a call like %delTempFiles (see delTempFiles.sas).

Important: in order to delete only datasets created in the calling macro program, define the macro symbol l_first_temp before the first call to %tempFileName: %LOCAL l_first_temp;

CAll: %LOCAL macvar; %tempFileName(&macvar);

Version
$Revision: 106 $
Author
$Author: b-braun $
Date
$Date: 2013-01-10 14:59:21 +0100 (Do, 10 Jan 2013) $
See Also
$HeadURL: https://svn.code.sf.net/p/sasunit/code/trunk/saspgm/sasunit/_sasunit_tempfilename.sas $
Parameters
r_tempFilename of maro variable to contain the generated name

Definition in file _sasunit_tempfilename.sas.