Date: Fri, 27 Jun 2003 14:02:13 -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: Parameters in Syntax
In-Reply-To: <sefc1f79.090@cdhs.state.co.us>
Content-type: text/plain; charset=US-ASCII
Hi
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
http://pages.infinit.net/rlevesqu/SampleScripts.htm#Dialogs
Regards
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
Marc Mackert
Sent: June 27, 2003 12:42 PM
To: SPSSX-L@LISTSERV.UGA.EDU
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
to change.
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
Marc J. Mackert, Ph.D.
Data Management Analyst
Administrative Review Division
1575 Sherman, Ground Floor
Denver, Colorado 80203
(303) 866-5955
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.