|
Hi list,
is there a quick way to programmatically access the syntax of the last used dialog (ie. first dialog under Recently used dialogs)? I need it for automation purposes; the trick is to do this post-analysis (so I can't catch it via OMS) . I guess it could be obtained by playing with output or journal file, but I wonder if there is any cleaner way to do it. Cheers, Blaz |
|
Most dialogs retain the options chosen, so just open it again and click
<paste>. Art Kendall Social Research Consultants Blaz Bregar wrote: > Hi list, > > is there a quick way to programmatically access the syntax of the last > used dialog (ie. first dialog under Recently used dialogs)? I need it > for automation purposes; the trick is to do this post-analysis (so I > can't catch it via OMS) . > > I guess it could be obtained by playing with output or journal file, > but I wonder if there is any cleaner way to do it. > > Cheers, > Blaz ===================== 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
Art Kendall
Social Research Consultants |
|
The trick is how to know which is the most recently used dialog. Bear in mind also that both OK and Paste commit the dialog to the most recently used list, so you can't tell whether or not the syntax was actually executed. The journal file would show you most recently executed commands but not the dialogs they came from. There is no api to retrieve the list, but you can dig this information out of the Windows Registry. For version 17, make the obvious change. Under this key, HKEY_CURRENT_USER\Software\JavaSoft\Prefs\com\spss\/P/A/S/W /Statistics\18.0\ui\recall you will see item0_id and item0_name that refer to the most recent dialog that committed syntax. HTH, Jon Peck SPSS, an IBM Company [hidden email] 312-651-3435
Most dialogs retain the options chosen, so just open it again and click <paste>. Art Kendall Social Research Consultants Blaz Bregar wrote: > Hi list, > > is there a quick way to programmatically access the syntax of the last > used dialog (ie. first dialog under Recently used dialogs)? I need it > for automation purposes; the trick is to do this post-analysis (so I > can't catch it via OMS) . > > I guess it could be obtained by playing with output or journal file, > but I wonder if there is any cleaner way to do it. > > Cheers, > Blaz ===================== 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 clarify, what I had in mind was actually executed syntax, ie. I would like to capture a user generated syntax and modify some cases based on it, then rerun it, all via python script. Since I can't define the OMS syntax in advance, my options are obviously limited to journal. Or is there some other option?
Thanks, Blaz. On Tue, Dec 1, 2009 at 00:24, Jon K Peck <[hidden email]> wrote:
|
|
Administrator
|
How about using OMS to write the NOTES table out to a file? It contains the syntax.
--
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/). |
| Free forum by Nabble | Edit this page |
