Error message where no error exists

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

Error message where no error exists

John F Hall

Syntax5.sps:

 

TEMPORARY.

select if (dateint > 0).

 

list dateint strttime strttimex strttimex

    QTimeC to intdate IntDate

    endtime

    /cases 5.

 

Syntax box says dateint not recognised.

 

Error # 4285 in column 12.  Text: dateint

Incorrect variable name: either the name is more than 64 characters, or it is

not defined by a previous command.

Execution of this command stops.

 

Copy text to a new syntax file

 

Syntax6.sps:

 

TEMPORARY.

select if (dateint > 0).

 

list dateint strttime strttimex strttimex

    QTimeC to intdate IntDate

    endtime

    /cases 5.

 

Error message still there below syntax box, but if I close the viewer file and run the job again it works.

 

DATASET ACTIVATE DataSet3.

TEMPORARY.

select if (dateint > 0).

 

list dateint strttime strttimex strttimex

    QTimeC to intdate IntDate

    endtime

    /cases 5.

 

 

 

dateint strttime strttimex strttimex QTimeC QTimeD Qdate day month     date    IntDate    IntDate endtime

 

2E+007   1110           .         .    .      .       .   .    .    423.00          .          .      .

7E+006   1509           .         .    .      .       .   .    .    507.00          .          .      .

7E+006   1708           .         .    .      .       .   .    .    507.00          .          .      .

3E+007   1234           .         .    .      .       .   .    .    429.00          .          .      .

2E+007   1522           .         .    .      .       .   .    .    521.00          .          .      .

 

 

Number of cases read:  5    Number of cases listed:  5

 

Weird, eh?

 

 

John F Hall MA (Cantab) Dip Ed (Dunelm)

IBM-SPSS Academic Author 9900074

 

Email: [hidden email]

Website: Journeys in Survey Research

Course: Survey Analysis Workshop (SPSS)

 

===================== 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 message where no error exists

spss.giesel@yahoo.de
Did you try "EXECUTE." after your SELECT IF ... command?


 

Am Freitag, 27. März 2020, 11:59:14 MEZ hat Joihn F Hall <[hidden email]> Folgendes geschrieben:


Syntax5.sps:

 

TEMPORARY.

select if (dateint > 0).

 

list dateint strttime strttimex strttimex

    QTimeC to intdate IntDate

    endtime

    /cases 5.

 

Syntax box says dateint not recognised.

 

Error # 4285 in column 12.  Text: dateint

Incorrect variable name: either the name is more than 64 characters, or it is

not defined by a previous command.

Execution of this command stops.

 

Copy text to a new syntax file

 

Syntax6.sps:

 

TEMPORARY.

select if (dateint > 0).

 

list dateint strttime strttimex strttimex

    QTimeC to intdate IntDate

    endtime

    /cases 5.

 

Error message still there below syntax box, but if I close the viewer file and run the job again it works.

 

DATASET ACTIVATE DataSet3.

TEMPORARY.

select if (dateint > 0).

 

list dateint strttime strttimex strttimex

    QTimeC to intdate IntDate

    endtime

    /cases 5.

 

 

 

dateint strttime strttimex strttimex QTimeC QTimeD Qdate day month     date    IntDate    IntDate endtime

 

2E+007   1110           .         .    .      .       .   .    .    423.00          .          .      .

7E+006   1509           .         .    .      .       .   .    .    507.00          .          .      .

7E+006   1708           .         .    .      .       .   .    .    507.00          .          .      .

3E+007   1234           .         .    .      .       .   .    .    429.00          .          .      .

2E+007   1522           .         .    .      .       .   .    .    521.00          .          .      .

 

 

Number of cases read:  5    Number of cases listed:  5

 

Weird, eh?

 

 

John F Hall MA (Cantab) Dip Ed (Dunelm)

IBM-SPSS Academic Author 9900074

 

Email: [hidden email]

Website: Journeys in Survey Research

Course: Survey Analysis Workshop (SPSS)

 

===================== 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 message where no error exists

Bruce Weaver
Administrator
An EXECUTE after a TEMPORARY-SELECT-IF would negate it--see the following
example.  Or did I misunderstand your suggestion, Mario?  

DATA LIST LIST / flag x (2F1).
BEGIN DATA
0 1
0 2
0 3
1 1
1 2
1 3
END DATA.

LIST.

TEMPORARY.
SELECT IF flag.
LIST.

TEMPORARY.
SELECT IF flag.
EXECUTE.
LIST.




Mario Giesel-2 wrote
> Did you try "EXECUTE." after your SELECT IF ... command?
>
>  





-----
--
Bruce Weaver
[hidden email]
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.

--
Sent from: http://spssx-discussion.1045642.n5.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
--
Bruce Weaver
bweaver@lakeheadu.ca
http://sites.google.com/a/lakeheadu.ca/bweaver/

"When all else fails, RTFM."

PLEASE NOTE THE FOLLOWING: 
1. My Hotmail account is not monitored regularly. To send me an e-mail, please use the address shown above.
2. The SPSSX Discussion forum on Nabble is no longer linked to the SPSSX-L listserv administered by UGA (https://listserv.uga.edu/).
Reply | Threaded
Open this post in threaded view
|

Re: Error message where no error exists

Kirill Orlov
In reply to this post by John F Hall
Will you show the input data, not mere results?

27.03.2020 13:59, Joihn F Hall пишет:

Syntax5.sps:

 

TEMPORARY.

select if (dateint > 0).

 

list dateint strttime strttimex strttimex

    QTimeC to intdate IntDate

    endtime

    /cases 5.

 

Syntax box says dateint not recognised.

 

Error # 4285 in column 12.  Text: dateint

Incorrect variable name: either the name is more than 64 characters, or it is

not defined by a previous command.

Execution of this command stops.

 

Copy text to a new syntax file

 

Syntax6.sps:

 

TEMPORARY.

select if (dateint > 0).

 

list dateint strttime strttimex strttimex

    QTimeC to intdate IntDate

    endtime

    /cases 5.

 

Error message still there below syntax box, but if I close the viewer file and run the job again it works.

 

DATASET ACTIVATE DataSet3.

TEMPORARY.

select if (dateint > 0).

 

list dateint strttime strttimex strttimex

    QTimeC to intdate IntDate

    endtime

    /cases 5.

 

 

 

dateint strttime strttimex strttimex QTimeC QTimeD Qdate day month     date    IntDate    IntDate endtime

 

2E+007   1110           .         .    .      .       .   .    .    423.00          .          .      .

7E+006   1509           .         .    .      .       .   .    .    507.00          .          .      .

7E+006   1708           .         .    .      .       .   .    .    507.00          .          .      .

3E+007   1234           .         .    .      .       .   .    .    429.00          .          .      .

2E+007   1522           .         .    .      .       .   .    .    521.00          .          .      .

 

 

Number of cases read:  5    Number of cases listed:  5

 

Weird, eh?

 

 

John F Hall MA (Cantab) Dip Ed (Dunelm)

IBM-SPSS Academic Author 9900074

 

Email: [hidden email]

Website: Journeys in Survey Research

Course: Survey Analysis Workshop (SPSS)

 

===================== 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 message where no error exists

Rich Ulrich
In reply to this post by John F Hall
The "column 12" says that the variable is not recognized in the
"Select if"  statement. It looks to me like you  are trying to run
without that file open, the one that has  dateint.  (Maybe you are
ordinarily more careful than I am, but that's an error I am not
surprised by.)

When you "close the viewer file and run the job again", I figure
that you re-run the lines that open the file.

--
Rich Ulrich

From: SPSSX(r) Discussion <[hidden email]> on behalf of Joihn F Hall <[hidden email]>
Sent: Friday, March 27, 2020 6:59 AM
To: [hidden email] <[hidden email]>
Subject: Error message where no error exists
 

Syntax5.sps:

 

TEMPORARY.

select if (dateint > 0).

 

list dateint strttime strttimex strttimex

    QTimeC to intdate IntDate

    endtime

    /cases 5.

 

Syntax box says dateint not recognised.

 

Error # 4285 in column 12.  Text: dateint

Incorrect variable name: either the name is more than 64 characters, or it is

not defined by a previous command.

Execution of this command stops.

 

Copy text to a new syntax file

 

Syntax6.sps:

 

TEMPORARY.

select if (dateint > 0).

 

list dateint strttime strttimex strttimex

    QTimeC to intdate IntDate

    endtime

    /cases 5.

 

Error message still there below syntax box, but if I close the viewer file and run the job again it works.

 

DATASET ACTIVATE DataSet3.

TEMPORARY.

select if (dateint > 0).

 

list dateint strttime strttimex strttimex

    QTimeC to intdate IntDate

    endtime

    /cases 5.

 

 

 

dateint strttime strttimex strttimex QTimeC QTimeD Qdate day month     date    IntDate    IntDate endtime

 

2E+007   1110           .         .    .      .       .   .    .    423.00          .          .      .

7E+006   1509           .         .    .      .       .   .    .    507.00          .          .      .

7E+006   1708           .         .    .      .       .   .    .    507.00          .          .      .

3E+007   1234           .         .    .      .       .   .    .    429.00          .          .      .

2E+007   1522           .         .    .      .       .   .    .    521.00          .          .      .

 

 

Number of cases read:  5    Number of cases listed:  5

 

Weird, eh?

 

 

John F Hall MA (Cantab) Dip Ed (Dunelm)

IBM-SPSS Academic Author 9900074

 

Email: [hidden email]

Website: Journeys in Survey Research

Course: Survey Analysis Workshop (SPSS)

 

===================== 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 message where no error exists

MLIves
In reply to this post by John F Hall

I’ve had intermittent issues like this.  I’ve never figured out why it happens.

 

I usually just re-paste the variable name from the variables list (ninth icon from the left in the Data Editor toolbar).

 

Then it works fine.

 

Melissa

 

From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of Joihn F Hall
Sent: Friday, March 27, 2020 6:59 AM
To: [hidden email]
Subject: [SPSSX-L] Error message where no error exists

 

Syntax5.sps:

 

TEMPORARY.

select if (dateint > 0).

 

list dateint strttime strttimex strttimex

    QTimeC to intdate IntDate

    endtime

    /cases 5.

 

Syntax box says dateint not recognised.

 

Error # 4285 in column 12.  Text: dateint

Incorrect variable name: either the name is more than 64 characters, or it is

not defined by a previous command.

Execution of this command stops.

 

Copy text to a new syntax file

 

Syntax6.sps:

 

TEMPORARY.

select if (dateint > 0).

 

list dateint strttime strttimex strttimex

    QTimeC to intdate IntDate

    endtime

    /cases 5.

 

Error message still there below syntax box, but if I close the viewer file and run the job again it works.

 

DATASET ACTIVATE DataSet3.

TEMPORARY.

select if (dateint > 0).

 

list dateint strttime strttimex strttimex

    QTimeC to intdate IntDate

    endtime

    /cases 5.

 

 

 

dateint strttime strttimex strttimex QTimeC QTimeD Qdate day month     date    IntDate    IntDate endtime

 

2E+007   1110           .         .    .      .       .   .    .    423.00          .          .      .

7E+006   1509           .         .    .      .       .   .    .    507.00          .          .      .

7E+006   1708           .         .    .      .       .   .    .    507.00          .          .      .

3E+007   1234           .         .    .      .       .   .    .    429.00          .          .      .

2E+007   1522           .         .    .      .       .   .    .    521.00          .          .      .

 

 

Number of cases read:  5    Number of cases listed:  5

 

Weird, eh?

 

 

John F Hall MA (Cantab) Dip Ed (Dunelm)

IBM-SPSS Academic Author 9900074

 

Email: [hidden email]

Website: Journeys in Survey Research

Course: Survey Analysis Workshop (SPSS)

 

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




This correspondence contains proprietary information some or all of which may be legally privileged; it is for the intended recipient only. If you are not the intended recipient you must not use, disclose, distribute, copy, print, or rely on this correspondence and completely dispose of the correspondence immediately. Please notify the sender if you have received this email in error. NOTE: Messages to or from the State of Connecticut domain may be subject to the Freedom of Information statutes and regulations.

===================== 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 message where no error exists

Jon Peck
Maybe you had two datasets open and coincidentally activated the correct one when you closed the Viewer window.


From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of Joihn F Hall
Sent: Friday, March 27, 2020 6:59 AM
To: [hidden email]
Subject: [SPSSX-L] Error message where no error exists

 

Syntax5.sps:

 

TEMPORARY.

select if (dateint > 0).

 

list dateint strttime strttimex strttimex

    QTimeC to intdate IntDate

    endtime

    /cases 5.

 

Syntax box says dateint not recognised.

 

Error # 4285 in column 12.  Text: dateint

Incorrect variable name: either the name is more than 64 characters, or it is

not defined by a previous command.

Execution of this command stops.

 

Copy text to a new syntax file

 

Syntax6.sps:

 

TEMPORARY.

select if (dateint > 0).

 

list dateint strttime strttimex strttimex

    QTimeC to intdate IntDate

    endtime

    /cases 5.

 

Error message still there below syntax box, but if I close the viewer file and run the job again it works.

 

DATASET ACTIVATE DataSet3.

TEMPORARY.

select if (dateint > 0).

 

list dateint strttime strttimex strttimex

    QTimeC to intdate IntDate

    endtime

    /cases 5.

 

 

 

dateint strttime strttimex strttimex QTimeC QTimeD Qdate day month     date    IntDate    IntDate endtime

 

2E+007   1110           .         .    .      .       .   .    .    423.00          .          .      .

7E+006   1509           .         .    .      .       .   .    .    507.00          .          .      .

7E+006   1708           .         .    .      .       .   .    .    507.00          .          .      .

3E+007   1234           .         .    .      .       .   .    .    429.00          .          .      .

2E+007   1522           .         .    .      .       .   .    .    521.00          .          .      .

 

 

Number of cases read:  5    Number of cases listed:  5

 

Weird, eh?

 

 

John F Hall MA (Cantab) Dip Ed (Dunelm)

IBM-SPSS Academic Author 9900074

 

Email: [hidden email]

Website: Journeys in Survey Research

Course: Survey Analysis Workshop (SPSS)

 

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




This correspondence contains proprietary information some or all of which may be legally privileged; it is for the intended recipient only. If you are not the intended recipient you must not use, disclose, distribute, copy, print, or rely on this correspondence and completely dispose of the correspondence immediately. Please notify the sender if you have received this email in error. NOTE: Messages to or from the State of Connecticut domain may be subject to the Freedom of Information statutes and regulations.

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


--
Jon K Peck
[hidden email]

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