Limite on MITERATE

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

Limite on MITERATE

albert_sun
Hi,

I am using "Do for" loop in a SPSS macro, and noticed that the default limit for "MITERATE' is 1000. I can changed this limit to 5000, but the loop still stopped at 3998 and it casued the SPSS crash. Is there any way to get around this or an alternative method to do it?

Do for loop I used. /*!do !i=1 to 5000 blabla !doend*/.

Thanks,
Reply | Threaded
Open this post in threaded view
|

Re: Limite on MITERATE

David Marso
Administrator
Albert,
This ran without any issues on Statistics 22.0.0.1

DEFINE mymacro().
!DO !I=1 !TO 10000.
ECHO !QUOTE (!I).
!DOEND
!ENDDEFINE.

SET MITERATE 10001.
SHOW MITERATE.
mymacro .

You need to provide more information on what you are doing?


albert_sun wrote
Hi,

I am using "Do for" loop in a SPSS macro, and noticed that the default limit for "MITERATE' is 1000. I can changed this limit to 5000, but the loop still stopped at 3998 and it casued the SPSS crash. Is there any way to get around this or an alternative method to do it?

Do for loop I used. /*!do !i=1 to 5000 blabla !doend*/.

Thanks,
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?"
Reply | Threaded
Open this post in threaded view
|

Re: Limite on MITERATE

albert_sun
thanks, David.

I am using SPSS 21, and I already set MITERATE to 10000, however, the loop will stop at 3998, and cause SPSS to crash.


On Wed, Apr 23, 2014 at 11:20 AM, David Marso [via SPSSX Discussion] <[hidden email]> wrote:
Albert,
This ran without any issues on Statistics 22.0.0.1

DEFINE mymacro().
!DO !I=1 !TO 10000.
ECHO !QUOTE (!I).
!DOEND
!ENDDEFINE.

SET MITERATE 10001.
SHOW MITERATE.
mymacro .

You need to provide more information on what you are doing?


albert_sun wrote
Hi,

I am using "Do for" loop in a SPSS macro, and noticed that the default limit for "MITERATE' is 1000. I can changed this limit to 5000, but the loop still stopped at 3998 and it casued the SPSS crash. Is there any way to get around this or an alternative method to do it?

Do for loop I used. /*!do !i=1 to 5000 blabla !doend*/.

Thanks,
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?"



If you reply to this email, your message will be added to the discussion below:
http://spssx-discussion.1045642.n5.nabble.com/Limite-on-MITERATE-tp5725602p5725608.html
To unsubscribe from Limite on MITERATE, click here.
NAML

Reply | Threaded
Open this post in threaded view
|

Re: Limite on MITERATE

David Marso
Administrator
My code also ran WITHOUT issues in SPSSWin 11.5 !!!
Did you run MY exact simple test code to verify it doesn't have something do do with the SPECIFICS
of WHAT YOU ARE DOING in the loop rather than the number of iterations?

When I state YOU NEED TO PROVIDE MORE SPECIFICS I meant precisely that!!!!
You ask for suggested alternatives but fail to provide anything to chew on in order to spit out any suggestions.




albert_sun wrote
thanks, David.

I am using SPSS 21, and I already set MITERATE to 10000, however, the loop
will stop at 3998, and cause SPSS to crash.


On Wed, Apr 23, 2014 at 11:20 AM, David Marso [via SPSSX Discussion] <
[hidden email]> wrote:

> Albert,
> This ran without any issues on Statistics 22.0.0.1
>
> DEFINE mymacro().
> !DO !I=1 !TO 10000.
> ECHO !QUOTE (!I).
> !DOEND
> !ENDDEFINE.
>
> SET MITERATE 10001.
> SHOW MITERATE.
> mymacro .
>
> You *need *to provide more information on what you are doing?
>
>
> albert_sun wrote
> Hi,
>
> I am using "Do for" loop in a SPSS macro, and noticed that the default
> limit for "MITERATE' is 1000. I can changed this limit to 5000, but the
> loop still stopped at 3998 and it casued the SPSS crash. Is there any way
> to get around this or an alternative method to do it?
>
> Do for loop I used. /*!do !i=1 to 5000 blabla !doend*/.
>
> Thanks,
>
>  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?"
>
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://spssx-discussion.1045642.n5.nabble.com/Limite-on-MITERATE-tp5725602p5725608.html
>  To unsubscribe from Limite on MITERATE, click here<http://spssx-discussion.1045642.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5725602&code=eGlhb3h1bi5zdW5AZ21haWwuY29tfDU3MjU2MDJ8LTE4MjIxNzA5NDk=>
> .
> NAML<http://spssx-discussion.1045642.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>
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?"
Reply | Threaded
Open this post in threaded view
|

Re: Limite on MITERATE

albert_sun
Hi, David:

This was the code I sued.



On Wed, Apr 23, 2014 at 11:37 AM, David Marso [via SPSSX Discussion] <[hidden email]> wrote:
My code also ran WITHOUT issues in SPSSWin 11.5 !!!
Did you run MY exact simple test code to verify it doesn't have something do do with the SPECIFICS
of WHAT YOU ARE DOING in the loop rather than the number of iterations?

When I state YOU NEED TO PROVIDE MORE SPECIFICS I meant precisely that!!!!
You ask for suggested alternatives but fail to provide anything to chew on in order to spit out any suggestions.




albert_sun wrote
thanks, David.

I am using SPSS 21, and I already set MITERATE to 10000, however, the loop
will stop at 3998, and cause SPSS to crash.


On Wed, Apr 23, 2014 at 11:20 AM, David Marso [via SPSSX Discussion] <
[hidden email]> wrote:

> Albert,
> This ran without any issues on Statistics 22.0.0.1
>
> DEFINE mymacro().
> !DO !I=1 !TO 10000.
> ECHO !QUOTE (!I).
> !DOEND
> !ENDDEFINE.
>
> SET MITERATE 10001.
> SHOW MITERATE.
> mymacro .
>
> You *need *to provide more information on what you are doing?
>

>
> albert_sun wrote
> Hi,
>
> I am using "Do for" loop in a SPSS macro, and noticed that the default
> limit for "MITERATE' is 1000. I can changed this limit to 5000, but the
> loop still stopped at 3998 and it casued the SPSS crash. Is there any way
> to get around this or an alternative method to do it?
>
> Do for loop I used. /*!do !i=1 to 5000 blabla !doend*/.
>
> Thanks,
>
>  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?"
>
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://spssx-discussion.1045642.n5.nabble.com/Limite-on-MITERATE-tp5725602p5725608.html
>  To unsubscribe from Limite on MITERATE, click here< > .
> NAML<
http://spssx-discussion.1045642.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>
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?"



If you reply to this email, your message will be added to the discussion below:
http://spssx-discussion.1045642.n5.nabble.com/Limite-on-MITERATE-tp5725602p5725610.html
To unsubscribe from Limite on MITERATE, click here.
NAML

Reply | Threaded
Open this post in threaded view
|

Re: Limite on MITERATE

albert_sun
In reply to this post by David Marso
Hi, David

This is the code I used

define !readXML (Level=!charend('/') / start=!charend('/') / end=!charend('/'))

!do !l !in (!Level).

!DO !i=!start !TO !end

get file=!quote(!concat('directory\',!l,'_Raw.sav')).

select if (SeqID=!i).
exe.

write outfile=!quote(!concat("directory\xml_txt\",!l,"_",!i".xml"))
/all.
new file.
!DOEND

dataset close all.
!doend.
!enddefine.


show miterate.
set miterate=3000.

!readXML Level=1 / start=1 / end=8000/.





On Wed, Apr 23, 2014 at 11:49 AM, Xiaoxun Sun <[hidden email]> wrote:
Hi, David:

This was the code I sued.



On Wed, Apr 23, 2014 at 11:37 AM, David Marso [via SPSSX Discussion] <[hidden email]> wrote:
My code also ran WITHOUT issues in SPSSWin 11.5 !!!
Did you run MY exact simple test code to verify it doesn't have something do do with the SPECIFICS
of WHAT YOU ARE DOING in the loop rather than the number of iterations?

When I state YOU NEED TO PROVIDE MORE SPECIFICS I meant precisely that!!!!
You ask for suggested alternatives but fail to provide anything to chew on in order to spit out any suggestions.




albert_sun wrote
thanks, David.

I am using SPSS 21, and I already set MITERATE to 10000, however, the loop
will stop at 3998, and cause SPSS to crash.


On Wed, Apr 23, 2014 at 11:20 AM, David Marso [via SPSSX Discussion] <
[hidden email]> wrote:

> Albert,
> This ran without any issues on Statistics 22.0.0.1
>
> DEFINE mymacro().
> !DO !I=1 !TO 10000.
> ECHO !QUOTE (!I).
> !DOEND
> !ENDDEFINE.
>
> SET MITERATE 10001.
> SHOW MITERATE.
> mymacro .
>
> You *need *to provide more information on what you are doing?
>

>
> albert_sun wrote
> Hi,
>
> I am using "Do for" loop in a SPSS macro, and noticed that the default
> limit for "MITERATE' is 1000. I can changed this limit to 5000, but the
> loop still stopped at 3998 and it casued the SPSS crash. Is there any way
> to get around this or an alternative method to do it?
>
> Do for loop I used. /*!do !i=1 to 5000 blabla !doend*/.
>
> Thanks,
>
>  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?"
>
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://spssx-discussion.1045642.n5.nabble.com/Limite-on-MITERATE-tp5725602p5725608.html
>  To unsubscribe from Limite on MITERATE, click here< > .
> NAML<
http://spssx-discussion.1045642.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>
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?"



If you reply to this email, your message will be added to the discussion below:
http://spssx-discussion.1045642.n5.nabble.com/Limite-on-MITERATE-tp5725602p5725610.html
To unsubscribe from Limite on MITERATE, click here.
NAML


Reply | Threaded
Open this post in threaded view
|

Re: Limit on MITERATE

David Marso
Administrator
As I suspected, it has NOTHING to to with MITERATE!
You are trying to open TOO MANY files in a single session!
That is why I requested you run my ECHO code!!!!!

Testcide.
----
DEFINE mywrite().
!DO !I=1 !TO 10000.
TEMPORARY.
SELECT IF (ID=!I).
WRITE OUTFILE=!QUOTE(!CONCAT('G:\TEMP\',!I,'.dat'))/ID var01 TO var10.
EXECUTE.
!DOEND
 !ENDDEFINE.

/*<Create sample data>*/.
DATASET DECLARE tmp.
MATRIX.
SAVE ({T({1:10000}), UNIFORM(10000,10)}) / OUTFILE tmp /VARIABLES ID var01 TO var10.
END MATRIX.
DATASET ACTIVATE tmp.

/* Test call */.

mywrite.

ERROR MESSAGE!
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?"
Reply | Threaded
Open this post in threaded view
|

Re: Limit on MITERATE

David Marso
Administrator
Go here to view screenshot of Error message in case you can't see it through your access method.
http://spssx-discussion.1045642.n5.nabble.com/Limite-on-MITERATE-td5725602.html#a5725613
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?"
Reply | Threaded
Open this post in threaded view
|

Re: Limit on MITERATE

albert_sun
Thanks, David

if I do need to process this many files in one session, how to get around to make it work. Currently I split the loop into every 3000.






On Wed, Apr 23, 2014 at 1:20 PM, David Marso [via SPSSX Discussion] <[hidden email]> wrote:
Go here to view screenshot of Error message in case you can't see it through your access method.
http://spssx-discussion.1045642.n5.nabble.com/Limite-on-MITERATE-td5725602.html#a5725613
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?"



If you reply to this email, your message will be added to the discussion below:
http://spssx-discussion.1045642.n5.nabble.com/Limite-on-MITERATE-tp5725602p5725614.html
To unsubscribe from Limite on MITERATE, click here.
NAML

Reply | Threaded
Open this post in threaded view
|

Re: Limit on MITERATE

David Marso
Administrator
I can think of a number of ways but they are beyond what I am willing to share for free in this forum.

albert_sun wrote
Thanks, David

if I do need to process this many files in one session, how to get around
to make it work. Currently I split the loop into every 3000.






On Wed, Apr 23, 2014 at 1:20 PM, David Marso [via SPSSX Discussion] <
[hidden email]> wrote:

> Go here to view screenshot of Error message in case you can't see it
> through your access method.
>
> http://spssx-discussion.1045642.n5.nabble.com/Limite-on-MITERATE-td5725602.html#a5725613
>  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?"
>
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://spssx-discussion.1045642.n5.nabble.com/Limite-on-MITERATE-tp5725602p5725614.html
>  To unsubscribe from Limite on MITERATE, click here<http://spssx-discussion.1045642.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5725602&code=eGlhb3h1bi5zdW5AZ21haWwuY29tfDU3MjU2MDJ8LTE4MjIxNzA5NDk=>
> .
> NAML<http://spssx-discussion.1045642.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>
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?"