Hi List,
I am using SPSS 15.0. Now I'm running a long syntax that produces a lot of tables ("ctable" command). I control what I will export with the viewer option (showing and hiding pivot tables, titles, logs, etc.). But I need to export different kind of objects in different output areas (i.e. from line 1 to line 100 of my syntax I want pivot tables are hidden, from line 101 to 200 of the same syntax I want they are shown). I want to control this with syntax and without interrupting the procedure, but I am not able. Anyone have any idea? TIA, Arnaldo Arnaldo Ferrari Nasi Facolta' di Scienze Politiche Universita' degli Studi Genova - Italia, EEC www.unige.it ===================== 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 |
Hello-
I was hoping someone would answer with a more sophisticated method, but this is how I handle a similar issue. Take a look at the OUTPUT commands, which I believe were introduced in V15. At the beginning of each project, I create 2 output files via syntax, like this: OUTPUT NEW NAME=Tables. OUTPUT NEW NAME=Commands. Then I use "OUTPUT ACTIVATE" in my syntax to toggle between outputs, writing all of my tables to one output and the commands into the other. For example, when I get to a table that I use to verify data, it looks like this: SET Printback=Off. OUTPUT ACTIVATE Tables. CTABLES /VLABELS VARIABLES=VarX DISPLAY=DEFAULT /TABLE VarX [C][COUNT F40.0] /CATEGORIES VARIABLES= VarX ORDER=A KEY=VALUE EMPTY=INCLUDE /TITLES TITLE="Make sure all are filled in". OUTPUT ACTIVATE Commands. SET Printback=On. When I finish running the project, I have all my tables in one nice output to look at, and all the commands are preserved in the other, in case I need more information on an error or to make sure everything ran smooth. I hope that helps, I'm looking forward to hearing other methods. ~Heidi -----Original Message----- From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of Arnaldo Ferrari Nasi Sent: Wednesday, July 27, 2011 1:30 AM To: [hidden email] Subject: Showing and Hiding Results with syntax Hi List, I am using SPSS 15.0. Now I'm running a long syntax that produces a lot of tables ("ctable" command). I control what I will export with the viewer option (showing and hiding pivot tables, titles, logs, etc.). But I need to export different kind of objects in different output areas (i.e. from line 1 to line 100 of my syntax I want pivot tables are hidden, from line 101 to 200 of the same syntax I want they are shown). I want to control this with syntax and without interrupting the procedure, but I am not able. Anyone have any idea? TIA, Arnaldo Arnaldo Ferrari Nasi Facolta' di Scienze Politiche Universita' degli Studi Genova - Italia, EEC www.unige.it ===================== 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 ---------------- Defender MX4 - QLAN ===================== 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 |
Free forum by Nabble | Edit this page |