|From||Gary Longton <email@example.com>|
|Subject||Re: st: How to pass tempfile names to called do-files|
|Date||Sat, 10 Apr 2004 14:51:40 -0700|
Joseph Coveney wrote:
In accordance with recommendations from a NetCourse taken some time ago, I'm writing a master do-file that calls dataset-creating do-files and then calls analysis do-files to act upon the datasets created.You can avoid the step assigning the temporary file names to global macros. The temporary filenames/location can be passed directly to the called do-files as arguments via the local macros that were assigned to them with -tempfile-.
I would like to use temporary files (-tempfile-) for the analysis datasets that are shared. So, I create a global macro to hold the physical file name in order to pass the tempfile to the called do-files so that it can be shared between the dataset-creating and analysis do-files. (Illustrated below.)
Question: is this the recommended approach to sharing tempfiles among do-files?