error code

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

error code

albert_sun
Hi, all:

i got this error code:

One or more values of variable stat contained a non-printing character. Each such character was replaced by a space. The data file itself was not modified.

anyone knows that kind of character is non-printable?

Reply | Threaded
Open this post in threaded view
|

RE: error code

MaxJasper

http://msdn.microsoft.com/en-us/library/218s85f8%28v=vs.90%29.aspx

 

 

From: albert_sun [via SPSSX Discussion] [mailto:[hidden email]]
Sent: 2013-Oct-27 17:49
To: MaxJasper
Subject: error code

 

Hi, all:

i got this error code:

One or more values of variable stat contained a non-printing character. Each such character was replaced by a space. The data file itself was not modified.

anyone knows that kind of character is non-printable?


Reply | Threaded
Open this post in threaded view
|

Re: error code

Jon K Peck
In reply to this post by albert_sun
The possibilities depend on whether you are in Unicode mode or not.  To see the character codes you are getting, change the variable format to AHEXnn, where nn is 2x the A format.  (You have to do this in syntax, e,g,  FORMAT x(AHEX50)).

Most likely you have character codes below the normal blank character, which is x20.  So, for example, if you see the code 08, that is a formfeed character.

These can all be replaced by true blanks if appropriate.  For example,
compute strvar = replace(strvar, string(08, pib1),' ').


Jon Peck (no "h") aka Kim
Senior Software Engineer, IBM
[hidden email]
phone: 720-342-5621




From:        albert_sun <[hidden email]>
To:        [hidden email],
Date:        10/27/2013 05:49 PM
Subject:        [SPSSX-L] error code
Sent by:        "SPSSX(r) Discussion" <[hidden email]>




Hi, all:

i got this error code:

One or more values of variable stat contained a non-printing character. Each
such character was replaced by a space. The data file itself was not
modified.

anyone knows that kind of character is non-printable?





--
View this message in context:
http://spssx-discussion.1045642.n5.nabble.com/error-code-tp5722750.html
Sent from the SPSSX Discussion mailing list archive at Nabble.com.

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (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


Reply | Threaded
Open this post in threaded view
|

Re: error code

Albert-Jan Roskam
Maybe extend it to all non-printable characters and clean all string variablles:

preserve.
set errors = none.  /* David's trick.
do repeat  #v = all.
+loop #ordinal = 1 to 31.
+  compute #v = replace(#v, string(#ordinal, pib1),' ').
+end loop if ( char.index(#v, string(#ordinal, pib1)) eq 0 ).
end repeat.
restore.

Regards,
Albert-Jan

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
All right, but apart from the sanitation, the medicine, education, wine, public order, irrigation, roads, a
fresh water system, and public health, what have the Romans ever done for us?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

--------------------------------------------
On Mon, 10/28/13, Jon K Peck <[hidden email]> wrote:

 Subject: Re: [SPSSX-L] error code
 To: [hidden email]
 Date: Monday, October 28, 2013, 1:56 AM

 The
 possibilities depend on whether you
 are in Unicode mode or not.  To see the character codes
 you are getting,
 change the variable format to AHEXnn, where nn is 2x the A
 format.  (You
 have to do this in syntax, e,g,  FORMAT
 x(AHEX50)).



 Most likely you have
 character codes
 below the normal blank character, which is x20.  So,
 for example,
 if you see the code 08, that is a formfeed character.



 These can all be replaced
 by true blanks
 if appropriate.  For example,

 compute strvar =
 replace(strvar, string(08,
 pib1),' ').





 Jon Peck (no "h") aka Kim

 Senior Software Engineer, IBM

 [hidden email]

 phone: 720-342-5621









 From:

  albert_sun
 <[hidden email]>

 To:

  [hidden email],


 Date:

  10/27/2013
 05:49 PM

 Subject:

    [SPSSX-L] error
 code

 Sent by:

    "SPSSX(r)
 Discussion" <[hidden email]>








 Hi, all:



 i got this error code:



 One or more values of variable stat contained a non-printing
 character.
 Each

 such character was replaced by a space. The data file itself
 was not

 modified.



 anyone knows that kind of character is non-printable?











 --

 View this message in context: http://spssx-discussion.1045642.n5.nabble.com/error-code-tp5722750.html

 Sent from the SPSSX Discussion mailing list archive at
 Nabble.com.



 =====================

 To manage your subscription to SPSSX-L, send a message to

 [hidden email] (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

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (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
Reply | Threaded
Open this post in threaded view
|

Re: error code

David Marso
Administrator
Won't the conditional loop termination skip any remaining characters following any that are not found?

Albert-Jan Roskam wrote
Maybe extend it to all non-printable characters and clean all string variablles:

preserve.
set errors = none.  /* David's trick.
do repeat  #v = all.
+loop #ordinal = 1 to 31.
+  compute #v = replace(#v, string(#ordinal, pib1),' ').
+end loop if ( char.index(#v, string(#ordinal, pib1)) eq 0 ).
end repeat.
restore.

Regards,
Albert-Jan

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
All right, but apart from the sanitation, the medicine, education, wine, public order, irrigation, roads, a
fresh water system, and public health, what have the Romans ever done for us?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

--------------------------------------------
On Mon, 10/28/13, Jon K Peck <[hidden email]> wrote:

 Subject: Re: [SPSSX-L] error code
 To: [hidden email]
 Date: Monday, October 28, 2013, 1:56 AM

 The
 possibilities depend on whether you
 are in Unicode mode or not.  To see the character codes
 you are getting,
 change the variable format to AHEXnn, where nn is 2x the A
 format.  (You
 have to do this in syntax, e,g,  FORMAT
 x(AHEX50)).



 Most likely you have
 character codes
 below the normal blank character, which is x20.  So,
 for example,
 if you see the code 08, that is a formfeed character.



 These can all be replaced
 by true blanks
 if appropriate.  For example,

 compute strvar =
 replace(strvar, string(08,
 pib1),' ').





 Jon Peck (no "h") aka Kim

 Senior Software Engineer, IBM

 [hidden email]

 phone: 720-342-5621









 From:

  albert_sun
 <[hidden email]>

 To:

  [hidden email],


 Date:

  10/27/2013
 05:49 PM

 Subject:

    [SPSSX-L] error
 code

 Sent by:

    "SPSSX(r)
 Discussion" <[hidden email]>








 Hi, all:



 i got this error code:



 One or more values of variable stat contained a non-printing
 character.
 Each

 such character was replaced by a space. The data file itself
 was not

 modified.



 anyone knows that kind of character is non-printable?











 --

 View this message in context: http://spssx-discussion.1045642.n5.nabble.com/error-code-tp5722750.html

 Sent from the SPSSX Discussion mailing list archive at
 Nabble.com.



 =====================

 To manage your subscription to SPSSX-L, send a message to

 [hidden email] (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

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (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
Please reply to the list and not to my personal email.
Those desiring my consulting or training services please feel free to email me.
---
"Nolite dare sanctum canibus neque mittatis margaritas vestras ante porcos ne forte conculcent eas pedibus suis."
Cum es damnatorum possederunt porcos iens ut salire off sanguinum cliff in abyssum?"