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 (July 2003)Back to main SPSSX-L pageJoin or leave SPSSX-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Wed, 16 Jul 2003 19:13:31 -0400
Reply-To:     Raynald Levesque <rlevesque@videotron.ca>
Sender:       "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From:         Raynald Levesque <rlevesque@videotron.ca>
Subject:      Re: Retriving working filename via syntax
In-Reply-To:  <12440030.a467afd2.8173000@mirapointms3.wayne.edu>
Content-type: text/plain; charset=US-ASCII

Hi

See http://pages.infinit.net/rlevesqu/spsstips.htm#ChangingFolder

HTH

Raynald Levesque rlevesque@videotron.ca Visit my SPSS Pages http://pages.infinit.net/rlevesqu/index.htm

-----Original Message----- From: SPSSX(r) Discussion [mailto:SPSSX-L@LISTSERV.UGA.EDU]On Behalf Of Doug Fuller Sent: July 16, 2003 1:03 PM To: SPSSX-L@LISTSERV.UGA.EDU Subject: Re: Retriving working filename via syntax

>Hi Doug, > >I have done it using macros. > >define !split(). >!do !var=1 !to 13. >get file="C:\My Documents\main.sav". >select if ~phase13=!var. >save outfile=!quote(!concat("C:\My Documents\phase",! var,".sav")). >!doend. >!enddefine. > >!split.

Unfortunately, this does not address my needs exactly. I want to make the "C:\my documents\phase" portion dynamic, as this syntax will be applied to over 50 data files. The idea would be to insert automatically the current filename, so that I wouldn't have to cut/paste it for each file before running the syntax. I'll provide a slightly better example to illustrate what I'm trying to reach:

[open file is anxcc.sav] temporary. select if (phase13=1). save outfile=!quote(!concat("anxcc", "_phase 1", ".sav")). execute.

[open file is cbre1-3.sav] temporary. select if (phase13=3). save outfile=!quote(!concat("cbre1-3", "_phase 3", ".sav")). execute.

Hope this clarifies my question...I'm looking for a system variable or some other construct that will allow me to figure out what file is currently open, minus the .sav extension.

Thanks!

--Doug Fuller dfuller@wayne.edu -- Doug Fuller dfuller@wayne.edu Research Technician, Wayne State University Department of Psychiatry and Behavioral Neurosciences


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