Macro Error: The depth of macro nesting has reached the current limit.

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Macro Error: The depth of macro nesting has reached the current limit.

Justin Black
Fellow SPSSers,

Would you kindly help me figure out a macro error?  I am trying to replace the variable list and scale label in a RELIABILITY command by using a macro.  Below are some relevant snippets of code.  Running macro returns the following error: "The depth of macro nesting has reached the current limit.  To increase the limit, use SET MNEST.  To check the limit use the SHOW command."  And then following that it says, "Text: !ERROR_MACRO Command: RELIABILITY  A macro symbol is invalid in this context."  I am running v19 with patches on Windows 7.

// BEGIN SNIPPETS //

*** Defines macros .
DEFINE !dim01cm () qid110, qid111, qid116, qid125 !ENDDEFINE .
DEFINE !dim01lbl ()Total !ENDDEFINE.
DEFINE alpha (var = !TOKENS(1) /label = !TOKENS(1))
RELIABILITY
  /VARIABLES=!var
  /FORMAT=NOLABELS
  /SCALE(!label)=ALL
  /MODEL=ALPHA
  /STATISTICS=CORR
  /SUMMARY=TOTAL .
!ENDDEFINE .

*** Runs Reliability Analysis .
alpha var = !dim01cm label = !dim01lbl .

// END SNIPPETS //

Many thanks in advance for your help.

Best,

--Justin