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 12:11:15 +0100
Reply-To:   peter.crawford@DB.COM
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   Peter Crawford <peter.crawford@DB.COM>
Subject:   Re: SAS Editor or current program name
Content-type:   text/plain; charset=us-ascii

I looked at the sashelp.vextfl view on mvs after starting SAS display manager within ispf Not only does it have a different order, to my SAS on winNT, the order differs from yours, starting with ISPLLIB. I think on this platform the order may be the order opened. That would mean the current progname would be the last item in the view... but not on my system.... :-(

Datum: 02.09.99 11:53 An: SAS-L@listserv.uga.edu

Antwort an: Neil.Simpson@natwest.com

Betreff: Re: SAS Editor or current program name Nachrichtentext:

Interestingly enough if you run this code in dialog manager under OS/390 you get the name of the steplib library that the SAS load module is in.

Regards Neil (UK)

> ---------- > From: Peter Crawford[SMTP:peter.crawford@DB.COM] > Sent: 02 September 1999 09:33 > To: SAS-L@LISTSERV.VT.EDU > Subject: SAS Editor or current program name > > 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 >

--------------------------------------------------------------------------- The contents of this e-mail may be privileged and are confidential. It may not be disclosed to or used by anyone other than the addressee(s), nor copied in any way. If received in error, please advise the sender, then delete it from your system. National Westminster Bank Plc Registered Number 929027 England. Registered Office: 41 Lothbury London EC2P 2BP Regulated by the Personal Investment Authority and IMRO for investment business. Member of the NatWest and Gartmore Marketing Group, advising on the life assurance, pensions and unit trust products only of that Marketing Group. ---------------------------------------------------------------------------


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