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 (October 2007)Back to main SPSSX-L pageJoin or leave SPSSX-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Fri, 26 Oct 2007 16:33:00 +0200
Reply-To:     Spousta Jan <JSpousta@CSAS.CZ>
Sender:       "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From:         Spousta Jan <JSpousta@CSAS.CZ>
Subject:      Re: Code: Value to Missing
Comments: To: Ribeiro <ribeirocanada@YAHOO.CA>
In-Reply-To:  A<200710260242.l9PMobGV026797@mailgw.cc.uga.edu>
Content-Type: text/plain; charset="iso-8859-2"

Hi, try to use $sysmis instead.

compute nouv(#var) = $sysmis.

Have a nice weekend,

Jan

-----Original Message----- From: SPSSX(r) Discussion [mailto:SPSSX-L@LISTSERV.UGA.EDU] On Behalf Of Ribeiro Sent: Friday, October 26, 2007 4:42 AM To: SPSSX-L@LISTSERV.UGA.EDU Subject: Code: Value to Missing

Hi listers,

I am doing a loop with a vector, but I am having a problem a little problem. I want to change the value 5 to missing... I checked some codes, pasting the code and they used the SYSMIS. But I got an error... So, what should I use to inform that a value is missing at the code!

vector vector=v1 to v53/nouv(53,f8.0). loop #var=1 to 53. do if vector(#var)=0. compute nouv(#var)=0. else if vector(#var)=5. compute nouv(#var)=sysmis. else. compute nouv(#var)=1. end if. end loop. exe.

Thanks in advance,

Ribeiro

===================== 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

_____

Tato zpráva a všechny připojené soubory jsou důvěrné a určené výlučně adresátovi(-ům). Jestliže nejste oprávněným adresátem, je zakázáno jakékoliv zveřejňování, zprostředkování nebo jiné použití těchto informací. Jestliže jste tento mail dostali neoprávněně, prosím, uvědomte odesilatele a smažte zprávu i přiložené soubory. Odesilatel nezodpovídá za jakékoliv chyby nebo opomenutí způsobené tímto přenosem.

This message and any attached files are confidential and intended solely for the addressee(s). Any publication, transmission or other use of the information by a person or entity other than the intended addressee is prohibited. If you receive this in error please contact the sender and delete the message as well as all attached documents. The sender does not accept liability for any errors or omissions as a result of the transmission.

-.- --

===================== 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