Inserting formatted text in Viewer

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

Inserting formatted text in Viewer

Guenter Marxen-2
Hello,

we want to automate nearly the same analysis for many data sets or for multiple groups ("split file") in one data set.

For this purpose we want to insert in the viewer output

- page breaks and
- text, sometimes depending on the actual variable or group.

To insert page breaks, we can use two Basic scripts by SPSS (PageBreakLast.SBS and ShiftPageBreaks.SBS) or an empty SUBTITLE-command (subtitle is ok).

Is there a better way to do this?


To insert text, we only found a bad work-around with the COMMENT-command, f.e.

*
text xyz.

Is there a way, to insert (if possible formatted) text (files) per syntax in the viewer window depending on conditions (variable values)?

--

Sincerely

Günter Marxen
University of Cologne

=====================
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: Inserting formatted text in Viewer

Peck, Jon
If you have SPSS version 16 or 17, you can add text blocks to the output with the TEXT extension command.  Here's the description from the Downloads section.

The TEXT extension command adds a command named TEXT to SPSS 16 and later. The TEXT command provides a syntax way of creating text comments in the Viewer. Unlike the COMMENT and ECHO commands, it produces a separate text block in the Viewer with its own outline entry.

You can get this from Developer Central (www.spss.com/devcentral).  It requires the Python programmability Plug-In.

There is a scripting api to create a page break.  In Python, it is
SetPageBreak
and a similar api exists in Basic.  It would be easy to create a short script to do this.

HTH,
Jon Peck

-----Original Message-----
From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of Guenter Marxen
Sent: Wednesday, January 21, 2009 9:49 AM
To: [hidden email]
Subject: [SPSSX-L] Inserting formatted text in Viewer

Hello,

we want to automate nearly the same analysis for many data sets or for multiple groups ("split file") in one data set.

For this purpose we want to insert in the viewer output

- page breaks and
- text, sometimes depending on the actual variable or group.

To insert page breaks, we can use two Basic scripts by SPSS (PageBreakLast.SBS and ShiftPageBreaks.SBS) or an empty SUBTITLE-command (subtitle is ok).

Is there a better way to do this?


To insert text, we only found a bad work-around with the COMMENT-command, f.e.

*
text xyz.

Is there a way, to insert (if possible formatted) text (files) per syntax in the viewer window depending on conditions (variable values)?

--

Sincerely

Günter Marxen
University of Cologne

=====================
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 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: Inserting formatted text in Viewer

Guenter Marxen-2
In reply to this post by Guenter Marxen-2
Hi Jon,

it is v 17. Thank you. There seems to be no way
to insert formatted text or text files?

Am 21.1.2009 15:33 schrieb Peck, Jon:

>Adding to this, there is a PAGEBREAK keyword in
>the TEXT command, so you can start a textblock
>on a new page by using this.  That option only works with version 17, however.
>
>Regards,
>Jon Peck
>
>-----Original Message-----
>From: Peck, Jon
>Sent: Wednesday, January 21, 2009 10:50 AM
>To: 'Guenter Marxen'; [hidden email]
>Subject: RE: [SPSSX-L] Inserting formatted text in Viewer
>
>If you have SPSS version 16 or 17, you can add
>text blocks to the output with the TEXT
>extension command.  Here's the description from the Downloads section.
>
>The TEXT extension command adds a command named
>TEXT to SPSS 16 and later. The TEXT command
>provides a syntax way of creating text comments
>in the Viewer. Unlike the COMMENT and ECHO
>commands, it produces a separate text block in
>the Viewer with its own outline entry.
>
>You can get this from Developer Central
>(www.spss.com/devcentral).  It requires the Python programmability Plug-In.
>
>There is a scripting api to create a page break.  In Python, it is
>SetPageBreak
>and a similar api exists in Basic.  It would be
>easy to create a short script to do this.
>
>HTH,
>Jon Peck
>
>-----Original Message-----
>From: SPSSX(r) Discussion
>[mailto:[hidden email]] On Behalf Of Guenter Marxen
>Sent: Wednesday, January 21, 2009 9:49 AM
>To: [hidden email]
>Subject: [SPSSX-L] Inserting formatted text in Viewer
>
>Hello,
>
>we want to automate nearly the same analysis for
>many data sets or for multiple groups ("split file") in one data set.
>
>For this purpose we want to insert in the viewer output
>
>- page breaks and
>- text, sometimes depending on the actual variable or group.
>
>To insert page breaks, we can use two Basic
>scripts by SPSS (PageBreakLast.SBS and
>ShiftPageBreaks.SBS) or an empty SUBTITLE-command (subtitle is ok).
>
>Is there a better way to do this?
>
>
>To insert text, we only found a bad work-around with the COMMENT-command, f.e.
>
>*
>text xyz.
>
>Is there a way, to insert (if possible
>formatted) text (files) per syntax in the viewer
>window depending on conditions (variable values)?
>
>--
>
>Sincerely
>
>Günter Marxen
>University of Cologne
>
>=====================
>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

--
Regards

Günter Marxen

=====================
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