SASUnit Examples  Version 1.5.0
_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: 315 $
Author
$Author: klandwich $
Date
$Date: 2014-02-28 10:25:18 +0100 (Fr, 28 Feb 2014) $
See Also
For further information please refer to SASUnit User's Guide
$HeadURL: https://svn.code.sf.net/p/sasunit/code/trunk/saspgm/sasunit/_tempfilename.sas $
Parameters
r_tempFilename of maro variable to contain the generated name

Definition in file _tempfilename.sas.