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 (March 2003)Back to main SPSSX-L pageJoin or leave SPSSX-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Fri, 21 Mar 2003 20:48:58 -0500
Reply-To:     Raynald Levesque <rlevesque@videotron.ca>
Sender:       "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From:         Raynald Levesque <rlevesque@videotron.ca>
In-Reply-To:  <002601c2efdf$cda9d4c0$0d01a8c0@ibpinet.net>
Content-type: text/plain; charset=iso-8859-1

This does it:

DATA LIST FREE /id(F8) gender(A1). BEGIN DATA 1 F 2 F 3 M 4 M 5 M 6 F END DATA. SAVE OUTFILE='c:\temp\data file.sav'.

* Find unique values. SORT CASES BY id gender. AGGREGATE OUTFILE=* /PRESORTED /BREAK=id gender /n=N. STRING g(A10). COMPUTE g=CONCAT("'",gender,"'"). WRITE OUTFILE='c:\temp\define labels.sps' /'ADD VALUE LABELS gender 'g g. EXECUTE. INCLUDE 'c:\temp\define labels.sps'.

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 Luiz Rodolfo Modesto Pires Sent: March 21, 2003 2:27 PM To: SPSSX-L@LISTSERV.UGA.EDU Subject:

Does Someone know some sintax, macro or script that put the value label equal the category for any variable in my DB?

For example, variable sex with category F and M. IŽd like to put a value label F "F" M "M", is it Possible?

Tks, Luiz


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