|
If (and maybe - only if) you work SAS on Windows the latest external file opened
will
be at the top of the dictionary table of external files and the following macro
%thisfile
_may_ achieve what you want -- it is based on example 1 in the on-line help
for:
Base SAS documentation/Language Reference/SAS Call Routines/SET
%macro thisfile();
%local fileref xpath xengine dsid rc;
/********* example %let this=%thisfile; ***********/
%let dsid=%sysfunc(open(sashelp.vextfl,i));
%syscall set(dsid); /* No leading ampersand with %SYSCALL */
%let rc=%sysfunc(fetchobs(&dsid,1));
/* testing*** %put _local_; ***********/
%let rc=%sysfunc(close(&dsid));
&xpath
%mend thisfile;
%put %thisfile;
HTH
Datum: 02.09.99 02:38
An: SAS-L@listserv.uga.edu
Antwort an: enzweiler@immunex.com
Betreff: SAS Editor
Nachrichtentext:
Is there a way to get the current sas program name that is open in the SAS
editor?
I can see the name at the top of the SAS editor dialog box but don't know where
or
how I can get this information into a sas variable.
TIA for your help,
John W. Enzweiler
Immunex Corporation
Seattle, WA
|