Insert page break with modify output not working

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

Insert page break with modify output not working

ChrisKeran
The pagebreak part of SPSSINC MODIFY OUTPUT TITLES command isn't working for
me. Thoughts?

*************Why doesn't this work????.
SPSSINC MODIFY OUTPUT TITLES
/IF COMMAND="'GGraph'"
PROCESS=ALL
/REPLACE ITEMS
/PAGEBREAKS BREAKBEFORETITLES=YES.

Background:
I have a number of graphs and then accompanying tables, and I'd like each
graph to start a new page.
FYI, I did try this other option "TEXT /OUTLINE PAGEBREAK=YES." however I
later remove all logs and titles (using this next command), but then the
pagebreak gets removed as well.

*************This works.
SPSSINC MODIFY OUTPUT LOGS TITLES
/IF
PROCESS=ALL
/REPLACE ITEMS
/VISIBILITY VISIBLE=FALSE.

An example of my graph command is...
* Chart Builder.
GGRAPH
  /GRAPHDATASET NAME="graphdataset" VARIABLES=ClinicalPractice
COUNT()[name="COUNT"]
    ContinuumSubscriber MISSING=LISTWISE REPORTMISSING=NO
  /COLORCYCLE COLOR1(215,0,51), COLOR2(41,134,38)
  /FRAME OUTER=NO INNER=NO
   /GRAPHSPEC SOURCE=INLINE
     TEMPLATE=["K:\CEA\MI\CURRENT PROJECTS\DATA\2020 Continuum Subscriber
Analysis\Analysis\Add data labels.sgt"]
  /GRIDLINES XAXIS=NO YAXIS=YES.
BEGIN GPL
  SOURCE: s=userSource(id("graphdataset"))
  DATA: ClinicalPractice=col(source(s), name("ClinicalPractice"),
unit.category())
  DATA: COUNT=col(source(s), name("COUNT"))
  DATA: ContinuumSubscriber=col(source(s), name("ContinuumSubscriber"),
unit.category())
  COORD: rect(dim(1,2), cluster(3,0))
  GUIDE: axis(dim(3), label("% Clinical Practice"))
  GUIDE: axis(dim(2), label("% Subscribers"))
  GUIDE: legend(aesthetic(aesthetic.color.interior),
label("ContinuumSubscriber"))
  SCALE: cat(dim(3), include("0.00", "1.00", "2.00", "3.00", "4.00"))
  SCALE: linear(dim(2), min(0), max(100), include(0))
  SCALE: cat(aesthetic(aesthetic.color.interior), include("0.00", "1.00"))
  SCALE: cat(dim(1), include("0.00", "1.00"))
  ELEMENT:
interval(position(summary.percent(ContinuumSubscriber*COUNT*ClinicalPractice,
    base.coordinate(dim(3)))), color.interior(ContinuumSubscriber),
shape.interior(shape.square))
END GPL.



--
Sent from: http://spssx-discussion.1045642.n5.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
Reply | Threaded
Open this post in threaded view
|

Re: Insert page break with modify output not working

Jon Peck
This should work.

SPSSINC MODIFY OUTPUT CHARTS TITLES
/IF COMMAND="GGRAPH"
PROCESS=ALL
/PAGEBREAKS BREAKBEFORETITLES=YES.

On Wed, Apr 1, 2020 at 2:46 PM ChrisKeran <[hidden email]> wrote:
The pagebreak part of SPSSINC MODIFY OUTPUT TITLES command isn't working for
me. Thoughts?

*************Why doesn't this work????.
SPSSINC MODIFY OUTPUT TITLES
/IF COMMAND="'GGraph'"
PROCESS=ALL
/REPLACE ITEMS
/PAGEBREAKS BREAKBEFORETITLES=YES.

Background:
I have a number of graphs and then accompanying tables, and I'd like each
graph to start a new page.
FYI, I did try this other option "TEXT /OUTLINE PAGEBREAK=YES." however I
later remove all logs and titles (using this next command), but then the
pagebreak gets removed as well.

*************This works.
SPSSINC MODIFY OUTPUT LOGS TITLES
/IF
PROCESS=ALL
/REPLACE ITEMS
/VISIBILITY VISIBLE=FALSE.

An example of my graph command is...
* Chart Builder.
GGRAPH
  /GRAPHDATASET NAME="graphdataset" VARIABLES=ClinicalPractice
COUNT()[name="COUNT"]
    ContinuumSubscriber MISSING=LISTWISE REPORTMISSING=NO
  /COLORCYCLE COLOR1(215,0,51), COLOR2(41,134,38)
  /FRAME OUTER=NO INNER=NO
   /GRAPHSPEC SOURCE=INLINE
     TEMPLATE=["K:\CEA\MI\CURRENT PROJECTS\DATA\2020 Continuum Subscriber
Analysis\Analysis\Add data labels.sgt"]
  /GRIDLINES XAXIS=NO YAXIS=YES.
BEGIN GPL
  SOURCE: s=userSource(id("graphdataset"))
  DATA: ClinicalPractice=col(source(s), name("ClinicalPractice"),
unit.category())
  DATA: COUNT=col(source(s), name("COUNT"))
  DATA: ContinuumSubscriber=col(source(s), name("ContinuumSubscriber"),
unit.category())
  COORD: rect(dim(1,2), cluster(3,0))
  GUIDE: axis(dim(3), label("% Clinical Practice"))
  GUIDE: axis(dim(2), label("% Subscribers"))
  GUIDE: legend(aesthetic(aesthetic.color.interior),
label("ContinuumSubscriber"))
  SCALE: cat(dim(3), include("0.00", "1.00", "2.00", "3.00", "4.00"))
  SCALE: linear(dim(2), min(0), max(100), include(0))
  SCALE: cat(aesthetic(aesthetic.color.interior), include("0.00", "1.00"))
  SCALE: cat(dim(1), include("0.00", "1.00"))
  ELEMENT:
interval(position(summary.percent(ContinuumSubscriber*COUNT*ClinicalPractice,
    base.coordinate(dim(3)))), color.interior(ContinuumSubscriber),
shape.interior(shape.square))
END GPL.



--
Sent from: http://spssx-discussion.1045642.n5.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


--
Jon K Peck
[hidden email]

===================== 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
Reply | Threaded
Open this post in threaded view
|

Re: Insert page break with modify output not working

ChrisKeran
That DID work, thanks, Jon.

However, I later remove all logs and titles (using this next command), but
then the pagebreak gets removed as well. Thoughts about how to remove the
title, but keep the pagebreak?


*Remove log and custom table title text.
SPSSINC MODIFY OUTPUT LOGS TITLES
/IF
PROCESS=ALL
/REPLACE ITEMS
/VISIBILITY VISIBLE=FALSE.



--
Sent from: http://spssx-discussion.1045642.n5.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
Reply | Threaded
Open this post in threaded view
|

Re: Insert page break with modify output not working

Jon Peck
The simplest way to do this would be to go to Edit > Options > Viewer and specify that titles (and logs) be hidden by default.  They will still be in the Viewer but will be closed so that they don't show.  Even though they are not shown, the MODIFY TABLES command will still set the page breaks.

In fact, though, the page breaks should still be present if you change visibility with the MODIFY OUTPUT command afterwards.  You can see them marked in the outline.

On Wed, Apr 1, 2020 at 8:55 PM ChrisKeran <[hidden email]> wrote:
That DID work, thanks, Jon.

However, I later remove all logs and titles (using this next command), but
then the pagebreak gets removed as well. Thoughts about how to remove the
title, but keep the pagebreak?


*Remove log and custom table title text.
SPSSINC MODIFY OUTPUT LOGS TITLES
/IF
PROCESS=ALL
/REPLACE ITEMS
/VISIBILITY VISIBLE=FALSE.



--
Sent from: http://spssx-discussion.1045642.n5.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


--
Jon K Peck
[hidden email]

===================== 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
Reply | Threaded
Open this post in threaded view
|

Re: Insert page break with modify output not working

ChrisKeran
Thanks, Jon.

I'll just remove the GGraph text after importing into Word. FYI, I prefer to
keep the logs in the output, until I know all the kinks are worked out.



--
Sent from: http://spssx-discussion.1045642.n5.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