| Date: | Sat, 21 Apr 2001 07:38:50 +0100 |
| Reply-To: | Davidl@sdresearch.com |
| Sender: | "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU> |
| From: | David Lindsay <spss@SDRESEARCH.COM> |
| Subject: | Re: Lib name type command? |
|
| In-Reply-To: | <sae02995.089@nwgnameserver.nurs.utah.edu> |
|---|
On 20 Apr 2001, at 12:20, William Dudley wrote:
> I am working iwth a large number of files which I get and save in various formats (so I have lots of get and save commands). I would like for my syntax to be as transportable as possible (so as to be used by co-workers who have differently named folders and diferntly named drives). Is there a
way to define the path name at the top of the syntax like I can in SAS with lib name so I do not have to customize the path names for each user?
>
Hi Bill,
Try this:
*Firstly define !path.
DEFINE !path()
'f:\DATA\SPSS\nfoods\nf9043\'
!ENDDEFINE.
*and use it like this.
SAVE OUTFILE=!path + 'hotprdm_comb.sav' /COMPRESSED .
GET FILE =!path + 'hotprdm_comb.sav'.
EXECUTE .
Regards,
--
David Lindsay
Significantly Different! Research, Reading,Berks. GB
Market Research Services & Consultancy
mailto: davidL@SDResearch.com
http://www.SDResearch.com/
|