LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (May 2006)Back to main SPSSX-L pageJoin or leave SPSSX-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Wed, 10 May 2006 10:52:55 -0400
Reply-To:     coxspss@cox.net
Sender:       "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From:         David Wright <coxspss@cox.net>
Subject:      macro or syntax to reference code
Content-Type: text/plain; charset=utf-8

I have a single syntax file that opens several different files are various processing procedural output for specific groups. Groups are defined by an alpha value (e.g., G14A, G23K, etc.).

As a truncated example:

get file='x'. sel if (V="G14A"). ...perform analysis for output. get file='y'. sel if (V="G14A"). ...perform analysis for output. ..etc...

I would like to eliminate having to put in the group identifier (e.g., G14A) every time I run this file, especially since it means going through & changing the G14A sveral times.

I could place the select if in a separate syntax file & use the INCLUDE FILE= command to reference it, but then I'd be opening 2 files to make the data pass (one in the include file to change the group selection & another in the procedure file).

What I would like is a statetment at the top of the syntax file where I could make the group selection & then have all the syntax below reference it, opening the different files and making the sample selection.

Thanks in advance.

David,


Back to: Top of message | Previous page | Main SPSSX-L page