Date: Fri, 24 Feb 2012 12:37:45 -0600
Reply-To: mpajoh@ODOT.ORG
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Masoud Pajoh <mpajoh@ODOT.ORG>
Subject: Re: name of the open program
In-Reply-To: <CAM+YpE-D4Kvib2aXmW+oht+6DK9RYP+BYKVOBfdhRMiC0dX0bQ@mail.gmail.com>
Content-Type: text/plain; charset="US-ASCII"
I stand corrected.
Thanks,
Masoud
Joe Matise <snoopy369@GMAIL.COM>
Sent by: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
02/24/2012 11:42 AM
Please respond to
Joe Matise <snoopy369@GMAIL.COM>
To
SAS-L@LISTSERV.UGA.EDU
cc
Subject
Re: name of the open program
I think you're confusing 'running' with 'saved'. SAS doesn't have a
concept of 'running' really, but rather 'submitted statements' (you could
say it is 'running' when statements are being processed, but that clearly
does not apply here). Unless you're working in EG, perhaps, only because
I
don't know much about EG. By default if you submit that code, you are
'running' a program, and submitting that let statement counts.
If I open SAS, and have two editor windows open, one with a saved program,
and one with a new editor window ("Untitled 1"), adding the let statement
(and a %put statement) will give me the name of the saved program if it's
added to that saved program, and will return null string if it's in
Untitled 1, both of which are the expected results.
-Joe
On Fri, Feb 24, 2012 at 11:34 AM, <mpajoh@odot.org> wrote:
> Because if the program is not running this:
> %let FileNameExt = %sysget(SAS_EXECFILENAME);
> will return a null string.
>
> Thanks,
>
> Masoud
>
>
>
>
> *Joe Matise <snoopy369@GMAIL.COM>*
> Sent by: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
>
> 02/24/2012 11:27 AM
> Please respond to
> Joe Matise <snoopy369@GMAIL.COM>
>
> To
> SAS-L@LISTSERV.UGA.EDU
> cc
> Subject
> Re: name of the open program
>
>
>
>
> What's the difference, in interactive mode?
>
> -Joe
>
> On Fri, Feb 24, 2012 at 10:51 AM, Masoud Pajoh <mpajoh@odot.org> wrote:
>
> > OK, this one gives the name of the program that is executing.
> > What I want is the name of the file that is just open in the enhanced
> > editor, but not executing.
> >
> > Thanks,
> >
> > Masoud
> >
> >
> >
> >
> > "Fehd, Ronald J. (CDC/OCOO/ITSO)" <rjf2@cdc.gov>
> > Sent by: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
> > 02/24/2012 09:31 AM
> > Please respond to
> > "Fehd, Ronald J. (CDC/OCOO/ITSO)" <rjf2@cdc.gov>
> >
> >
> > To
> > SAS-L@LISTSERV.UGA.EDU
> > cc
> >
> > Subject
> > Re: name of the open program
> >
> >
> >
> >
> >
> >
> > This is a FAQ, which is covered on this page:
> >
> >
> >
>
http://www.sascommunity.org/wiki/Batch_processing_under_Windows#Program_Name
> >
> >
> > Ron Fehd MyProgram.sas maven
> >
> >
> > > -----Original Message-----
> > > From: owner-sas-l@listserv.uga.edu [
> mailto:owner-sas-l@listserv.uga.edu <owner-sas-l@listserv.uga.edu>]
> > > On Behalf Of mpajoh@ODOT.ORG
> > > Sent: Friday, February 24, 2012 10:22 AM
> > > To: SAS-L@LISTSERV.UGA.EDU
> > > Subject: name of the open program
> > >
> > > All:
> > > If I have test.sas open in the enhanced editor, is there a way to
come
> > up with
> > > "test.sas" as the name open file programmatically.
> > >
> > > Thanks,
> > >
> > > Masoud
> >
> > --
> > This message has been scanned for viruses and
> > dangerous content by MailScanner, and is
> > believed to be clean.
> >
>
> --
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
>
>
>
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
|