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 (July 2010)Back to main SPSSX-L pageJoin or leave SPSSX-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Mon, 5 Jul 2010 11:00:48 -0700
Reply-To:   Bruce Weaver <bruce.weaver@hotmail.com>
Sender:   "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From:   Bruce Weaver <bruce.weaver@hotmail.com>
Subject:   Re: Syntax to crop variable labels
In-Reply-To:   <737277CE63864206AA990DE0C05B52C2@yourg2asvv4l2m>
Content-Type:   text/plain; charset=us-ascii

John, just modify the PRINT command, in that case. Judging by your post in the other thread, I think you want something like:

print /' token_id.' item '"' itemlabel '"/'.

I get this for output:

token_id.614 "My assignments don't require using technology "/ token_id.615 "School filters or firewalls block websites I need to use "/ token_id.616 "Software is not good enough "/ token_id.617 "Teachers don't know how to use the technology "/ token_id.618 "Teachers limit our technology use "/ token_id.619 "There are rules against using technology at my school "/ token_id.620 "My school has different computers or software than I am used to "/

Bruce

John F Hall wrote: > > Art > > Thanks for the syntax: this is what I get: > > 614 "My assignments don't require using technology > "/ > > 615 "School filters or firewalls block websites I need to use > "/ > > 616 "Software is not good enough > "/ > > 617 "Teachers don't know how to use the technology > "/ > > 618 "Teachers limit our technology use > "/ > > 619 "There are rules against using technology at my school > "/ > > 620 "My school has different computers or software than I am used to > "/ > > > > but I don't want the numbers, just the text. However, if the syntax can > be amended to yield > > > > token614 "My assignments don't require using technology > "/ > > token615 "School filters or firewalls block websites I need to use > "/ > > > > I can then run var labels with the result. This saves manually amending > about 400 labels. > > > > John > > > > PS I like my slashes at the beginning of the line (with a preceding space > of course) where I can see them. > > > > > > ----- Original Message ----- > > From: Art Kendall > To: SPSSX-L@LISTSERV.UGA.EDU > Sent: Monday, July 05, 2010 5:51 PM > Subject: Re: Syntax to crop variable labels > > > copy the syntax below into a syntax window. See if this is what you > need. Then try replacing the piece of text in the syntax window between > "begin data" and "end data" with the text from the other source. > copy the resulting print info into a new syntax window. > > data list fixed /item (1x,f3) itemlabel(1x, a70). > begin data > (614)My assignments don't require using technology > (615)School filters or firewalls block websites I need to use > (616)Software is not good enough > (617)Teachers don't know how to use the technology > (618)Teachers limit our technology use > (619)There are rules against using technology at my school > (620)My school has different computers or software than I am used to > end data. > print /' ' item '"' itemlabel '"/'. > execute. > > Art Kendall > Social Research Consultants > > On 7/5/2010 11:29 AM, John F Hall wrote: > I am working on a file constructed by someone else. There are > hundreds of variable labels of the following type. Rather than going > through and deleting the brackets and their contents manually, is there > any syntax to do it for me? Otherwise I'll be at it all night. > > TIA > > John Hall > > (614)My assignments don't require using technology > (615)School filters or firewalls block websites I need to use > (616)Software is not good enough > (617)Teachers don't know how to use the technology > (618)Teachers limit our technology use > (619)There are rules against using technology at my school > (620)My school has different computers or software than I am used to > ===================== 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 >

----- -- Bruce Weaver bweaver@lakeheadu.ca http://sites.google.com/a/lakeheadu.ca/bweaver/ "When all else fails, RTFM."

NOTE: My Hotmail account is not monitored regularly. To send me an e-mail, please use the address shown above. -- View this message in context: http://old.nabble.com/Syntax-to-crop-variable-labels-tp29077097p29078281.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


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