- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Wait(0), Wait() vs. Wait(n)
I have a script that does many thing including creating a matrix from a datatable of ~17,500x40. The entire scrpit works fine when I run in in sections but fails to create the matrix when I run it as a whole. The issue appears to be at the step where m = dt << Get As Matrix();. I've inserted wait(0), wait() and even wait(30) but nothing seems to fix the issue. Any suggestions? Sorry I can't think of a way to share the code.
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: Wait(0), Wait() vs. Wait(n)
@DaveLee,
When you say, it fails to create a matrix - is it generating an error ?
May be ensure that the table is current might also help ?
Uday
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: Wait(0), Wait() vs. Wait(n)
Yes, I explicitly call the table. For example, the data table is named 'dt', I create the matrix by the following m = dt << Get As Matrix();.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: Wait(0), Wait() vs. Wait(n)
@DaveLee,
Can you share the error ? Also - a sample of your data to see if this is reproducible ?
Uday
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: Wait(0), Wait() vs. Wait(n)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: Wait(0), Wait() vs. Wait(n)
If there are formula columns that need to be evaluated, adding dt<<RunFormulas; before accessing the data might help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: Wait(0), Wait() vs. Wait(n)
Thanks Craige, but the last step that finctions is just looping through a directory and cretaing a master file based on certain criteria. I know that data table is created. The very next step is "Get As Matrix' which does not happen.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: Wait(0), Wait() vs. Wait(n)
It might be time to select Help > Books > Scripting Guide and review the section about formulas and formula management.
I advise against using formulas to populate data columns with a script unless it is necessary for the values to automatically update after the script is finished.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: Wait(0), Wait() vs. Wait(n)
What do you mean by "looping through a directory and creating a master file?" What are the specific entities and actions involved?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: Wait(0), Wait() vs. Wait(n)
and... is JMP still running (can you submit JSL, use menus, change windows?) or is JMP in a loop (check task manager) or did JMP crash?