LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (September 1999, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Thu, 2 Sep 1999 09:33:16 +0100
Reply-To:   peter.crawford@DB.COM
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   Peter Crawford <peter.crawford@DB.COM>
Subject:   SAS Editor or current program name
Comments:   To: enzweiler@immunex.com
Content-type:   text/plain; charset=us-ascii

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


Back to: Top of message | Previous page | Main SAS-L page