|
Is it possible in syntax to collapse/hide output headings?
I know it is possible to stop output results from reaching the output window with SET or OMS, but I want to keep all background work in the output file, collect data and present it nicely. The MODIFY OUTPUT extension let me work on tables text graphs etc, but cannot collapse branches. It would in some instances be very convenient to just hide a command totally, but keeping it for future reference. Best wishes, PR |
|
MODIFY OUTPUT can hide titles, header,
and other object types. Here's an example
SPSSINC MODIFY OUTPUT HEADINGS TITLES /IF SUBTYPE="'Descriptive Statistics'" PROCESS=ALL /VISIBILITY VISIBLE=FALSE. Jon Peck (no "h") aka Kim Senior Software Engineer, IBM [hidden email] phone: 720-342-5621 From: PRogman <[hidden email]> To: [hidden email], Date: 03/04/2014 10:51 AM Subject: [SPSSX-L] Collapse Output Heading in Syntax? Sent by: "SPSSX(r) Discussion" <[hidden email]> Is it possible in syntax to collapse/hide output headings? I know it is possible to stop output results from reaching the output window with SET or OMS, but I want to keep all background work in the output file, collect data and present it nicely. The MODIFY OUTPUT extension let me work on tables text graphs etc, but cannot collapse branches. It would in some instances be very convenient to just hide a command totally, but keeping it for future reference. Best wishes, PR -- View this message in context: http://spssx-discussion.1045642.n5.nabble.com/Collapse-Output-Heading-in-Syntax-tp5724722.html Sent from the SPSSX Discussion mailing list archive at Nabble.com. ===================== 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 |
|
Administrator
|
In reply to this post by PRogman
You can invoke a script using the SCRIPT command.
Point it to this (in a file). Or look up the equivalent python functions? Option Explicit Sub Main Dim i As Long With objSpssApp.GetDesignatedOutputDoc.Items For i=.Count-1 To 0 Step -1 With .GetItem(i) If .SPSSType = 2 And .Level=1 Then .Expanded=False Exit For End If End With Next End With End Sub
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?" |
|
Thank you, David, this is what I was looking for.
![]() It comes really handy when I return the output file which sometimes contains commands like EXAMINE VARIABLES=Alfa Bravo Charlie BY Delta /PLOT BOXPLOT STEMLEAF HISTOGRAM NPPLOT /COMPARE GROUPS /STATISTICS DESCRIPTIVES /CINTERVAL 95 /MISSING LISTWISE /NOTOTAL. which generates looong lists. I have not been able to hide it without lots of lines and MODIFY OUTPUTs. I will perhaps try to do it in Python, OTOH, scripts may work with installations of non-power-users with older versions without default python installed. Great! /PR |
| Free forum by Nabble | Edit this page |
