Date: Tue, 20 Dec 2011 14:08:40 -0800
Reply-To: David Marso <david.marso@gmail.com>
Sender: "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From: David Marso <david.marso@gmail.com>
Subject: Re: macro to replace portions of variable names in syntax file
In-Reply-To: <A715D7E005BF1C4D8505CA3CABB748F206D2990D@HCAMAIL03.ochca.com>
Content-Type: text/plain; charset=us-ascii
define !const() 12_13_2011 !ENDDEFINE .
DEFINE !DATEMO ().
compute
!CONCAT(xxxx,!EVAL(!const),yyy)=!CONCAT(xxxx,!EVAL(!const),yyy,'_copy').
!ENDDEFINE .
SET MPRINT ON.
!DATEMO .
103 0 M>
104 0 M> .
105 0 M> COMPUTE XXXX12_13_2011YYY = XXXX12_13_2011YYY_copy
106 0 M> .
list.
--
View this message in context: http://spssx-discussion.1045642.n5.nabble.com/macro-to-replace-portions-of-variable-names-in-syntax-file-tp5087267p5090209.html
Sent from the SPSSX Discussion mailing list archive at Nabble.com.
=====================
To manage your subscription to SPSSX-L, send a message to
LISTSERV@LISTSERV.UGA.EDU (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD
|