Undefined Variable!

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

Undefined Variable!

DKUKEC
Greetings,

I was struggling to identify the origins of the following ERROR.  While I know that the variable name is in the dataset, I still receive the following ERROR message.  Where am I going wrong and how can I address this issue.  I am currently using V25 with a windows computer, 64 bit.

Thank you
Damir

SORT CASES BY SystemPersonNumber (A) CASE_FILING_DATE_TIME (A) CALENDAR_SET_DATE (A) .
EXECUTE.

>Error # 701 in column 63.  Text:  CALENDAR_SET_DATE
>An undefined variable name, or a scratch or system variable was specified in a
>variable list which accepts only standard variables.  Check spelling and
>verify the existence of this variable.
>Execution of this command stops.
EXECUTE .
Reply | Threaded
Open this post in threaded view
|

Re: Undefined Variable!

Bruce Weaver
Administrator
This post was updated on .
Hello Damir.  Have you tried generating the SORT command syntax via the GUI, exiting via the PASTE command?  This would eliminate any typos that might have crept in.  

  https://libguides.library.kent.edu/SPSS/SortData

Alternatively, try pasting the variable name into your syntax window from the Variables utility--see item 3 here:

   https://www.theanalysisfactor.com/3-spss-buttons-easier/

I hope this helps!  

PS- IIRC, you do not need EXECUTE after SORT CASES!  

DKUKEC wrote
Greetings,

I was struggling to identify the origins of the following ERROR.  While I know that the variable name is in the dataset, I still receive the following ERROR message.  Where am I going wrong and how can I address this issue.  I am currently using V25 with a windows computer, 64 bit.

Thank you
Damir

SORT CASES BY SystemPersonNumber (A) CASE_FILING_DATE_TIME (A) CALENDAR_SET_DATE (A) .
EXECUTE.

>Error # 701 in column 63.  Text:  CALENDAR_SET_DATE
>An undefined variable name, or a scratch or system variable was specified in a
>variable list which accepts only standard variables.  Check spelling and
>verify the existence of this variable.
>Execution of this command stops.
EXECUTE .
--
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: Undefined Variable!

DKUKEC
Thank you Bruce.

I have not been on SPSSX discussion for years now, as this has never happened to me before.  Great suggestions and yes, using GUI does seem to address the issue.  So far, the GUI routine works best, while pasting the variable name from the variable utility, doesn't make it easier.  The GUI seems to be the best way to go.

Until next time Bruce et al.

Sincerely,
Damir