Date: Wed, 31 Aug 2005 16:45:33 +0200
Reply-To: lucameyer@tiscali.it
Sender: "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From: Luca Meyer <lucameyer@tiscali.it>
Organization: Luca Meyer
Subject: Passing a macro variable to a script
Content-Type: text/plain; charset="us-ascii"
Hi,
Here I am trying to run something like:
DEFINE !Macro1 (Parameter1=!TOKENS(1)).
GET FILE "C:\TEMP\TEMP.SAV".
SCRIPT "C:\TEMP\TEMP.SBS" ("!Parameter1").
!ENDDEFINE
!Macro1 Parameter1=Q300.
That is, by using the temp.sbs script I am trying to rename some variables
by adding one prefix (in the specific case Q300 but it could vary) to the
name of the variable.
The script produces the correct rename syntax (thanks Neila for your
suggestions!), but instead of the "Q300" value it takes "!Parameter1", that
is the parameter value is not sent to the script...any suggestion on how I
can correct the macro?
Thanks,
Luca
Mr. Luca MEYER
Survey research, data analysis & more: http://www.lucameyer.com/
Tel: +390122854456 - Fax: +390122854837 - Mobile: + 393394950021
"If you can't feed a hundred people, then feed just one." - Mother Teresa -
www.thehungersite.com
|