Date: Fri, 27 Jun 2003 14:02:13 -0400
Reply-To: Raynald Levesque <firstname.lastname@example.org>
Sender: "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From: Raynald Levesque <email@example.com>
Subject: Re: Parameters in Syntax
Content-type: text/plain; charset=US-ASCII
If you know a little bit about scripting, you should have no problem to do
what you want starting from the following examples:
Files #1, #2 and #3 of
Raynald Levesque firstname.lastname@example.org
Visit my SPSS Pages http://pages.infinit.net/rlevesqu/index.htm
From: SPSSX(r) Discussion [mailto:SPSSX-L@LISTSERV.UGA.EDU]On Behalf Of
Sent: June 27, 2003 12:42 PM
Subject: Parameters in Syntax
I have two questions that I think are somewhat separate, yet related. I've
had good success here in the past, and hope someone can help me out.
I am trying to figure out how to use a parameter query within my syntax file
so that when run, the file will prompt the user for the name of the file
they would like to get. We run this same syntax at the beginning of each
month, but the name of the extract file changes monthly. So, instead of
having to go into the syntax and change the name there, I would just like it
to prompt the user for the file name. The path of the file will always
remain the same (C:\Information\Extract\filename) I just need the filename
Also, I have a different syntax file that pulls a random sample from this
larger file based upon a particular county. The large file contains data for
children in all 64 counties, but we sample by county in order to go out to
the county and do reviews. Each month we review in different counties.
Currently, we use a Select if (county=02 And group=1). I would like to be
able to use a parameter that would prompt the user for the county number and
group that they would like the sample selected from.
TIA for any suggestions and help!
Marc J. Mackert, Ph.D.
Data Management Analyst
Administrative Review Division
1575 Sherman, Ground Floor
Denver, Colorado 80203
This e-mail and any attachments thereto, is intended only for use by the
addressees named herein and may contain legally privileged and/or
confidential information. If you are not the intended recipient of this
e-mail, you are hereby notified that any dissemination, distribution or
copying of this e-mail and any attachments thereto, is strictly prohibited.
If you have received this e-mail in error, please immediately notify me at
303.894.7510 ext.24 and permanently delete the original and any copy of any
e-mail and any printout thereof.