Adding and formatting comments in output?

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

Adding and formatting comments in output?

Robert L
In some cases, I think it could be convenient to suppress printing of all extras (log, notes, warnings,...) in output and just add a comment or two to explain what has been done. Text fields can be inserted in an active output window (Insert/ Text Field/...), but what if I want to do that in the syntax? Anyone who has found any good way to achieve this?

Robert

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

Re: Adding and formatting comments in output?

Jon K Peck
The TEXT extension command allows you to insert comment text blocks with syntax.  You can get it from the SPSS Community site.  Besides plain text, it allows you to use html or rtf formatting in the text.

Example:
text "Don't believe anything that follows this note."  "The data were all made up".

or

text "Don't believe anything that follows this note."  "The data were all made up"
/outline heading= "WARNING!".


Jon Peck (no "h") aka Kim
Senior Software Engineer, IBM
[hidden email]
new phone: 720-342-5621




From:        Robert Lundqvist <[hidden email]>
To:        [hidden email],
Date:        02/22/2013 08:11 AM
Subject:        [SPSSX-L] Adding and formatting comments in output?
Sent by:        "SPSSX(r) Discussion" <[hidden email]>




In some cases, I think it could be convenient to suppress printing of all extras (log, notes, warnings,...) in output and just add a comment or two to explain what has been done. Text fields can be inserted in an active output window (Insert/ Text Field/...), but what if I want to do that in the syntax? Anyone who has found any good way to achieve this?

Robert

=====================
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: Adding and formatting comments in output?

David Marso
Administrator
In reply to this post by Robert L
ECHO "Is this what you want to do?".

Robert Lundqvist-3 wrote
In some cases, I think it could be convenient to suppress printing of all extras (log, notes, warnings,...) in output and just add a comment or two to explain what has been done. Text fields can be inserted in an active output window (Insert/ Text Field/...), but what if I want to do that in the syntax? Anyone who has found any good way to achieve this?

Robert

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

Re: Adding and formatting comments in output?

Jon K Peck
Probably not, since echo output is buried in the log blocks.


Jon Peck (no "h") aka Kim
Senior Software Engineer, IBM
[hidden email]
new phone: 720-342-5621




From:        David Marso <[hidden email]>
To:        [hidden email],
Date:        02/22/2013 08:27 AM
Subject:        Re: [SPSSX-L] Adding and formatting comments in output?
Sent by:        "SPSSX(r) Discussion" <[hidden email]>




ECHO "Is this what you want to do?".


Robert Lundqvist-3 wrote
> In some cases, I think it could be convenient to suppress printing of all
> extras (log, notes, warnings,...) in output and just add a comment or two
> to explain what has been done. Text fields can be inserted in an active
> output window (Insert/ Text Field/...), but what if I want to do that in
> the syntax? Anyone who has found any good way to achieve this?
>
> Robert
>
> =====================
> To manage your subscription to SPSSX-L, send a message to

> LISTSERV@.UGA

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





-----
Please reply to the list and not to my personal email.
Those desiring my consulting or training services please feel free to email me.
--
View this message in context:
http://spssx-discussion.1045642.n5.nabble.com/Adding-and-formatting-comments-in-output-tp5718198p5718199.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


Reply | Threaded
Open this post in threaded view
|

Re: Adding and formatting comments in output?

Robert L
In reply to this post by Robert L

Thanks for the suggestion, it seems to be just what I want. As far as I can see, the TEXT extension requires the Python extension, could that be correct? And that latter extension is not available for free, but one of the licensed add-ons?

 

Robert

 

Från: Jon K Peck [mailto:[hidden email]]
Skickat: den 22 februari 2013 16:20
Till: Robert Lundqvist
Kopia: [hidden email]
Ämne: Re: [SPSSX-L] Adding and formatting comments in output?

 

The TEXT extension command allows you to insert comment text blocks with syntax.  You can get it from the SPSS Community site.  Besides plain text, it allows you to use html or rtf formatting in the text.

Example:
text "Don't believe anything that follows this note."  "The data were all made up".

or

text "Don't believe anything that follows this note."  "The data were all made up"
/outline heading= "WARNING!".


Jon Peck (no "h") aka Kim
Senior Software Engineer, IBM
[hidden email]
new phone: 720-342-5621



Robert Lundqvist
Reply | Threaded
Open this post in threaded view
|

Re: Adding and formatting comments in output?

Jon K Peck
TEXT does require the Python Essentials - in fact, I think it is included in them.  The Essentials are free and available from the SPSS Community site (www.ibm.com/developerworks/spssdevcentral) as far back as V18.  For V21, the Essentials are provided on the download site for Statistics itself.


Jon Peck (no "h") aka Kim
Senior Software Engineer, IBM
[hidden email]
new phone: 720-342-5621




From:        Robert Lundqvist <[hidden email]>
To:        Jon K Peck/Chicago/IBM@IBMUS,
Cc:        "[hidden email]" <[hidden email]>
Date:        02/26/2013 04:02 AM
Subject:        Re: [SPSSX-L] Adding and formatting comments in output?




Thanks for the suggestion, it seems to be just what I want. As far as I can see, the TEXT extension requires the Python extension, could that be correct? And that latter extension is not available for free, but one of the licensed add-ons?
 
Robert
 
Från: Jon K Peck [mailto:peck@...]
Skickat:
den 22 februari 2013 16:20
Till:
Robert Lundqvist
Kopia:
[hidden email]
Ämne:
Re: [SPSSX-L] Adding and formatting comments in output?

 
The TEXT extension command allows you to insert comment text blocks with syntax.  You can get it from the SPSS Community site.  Besides plain text, it allows you to use html or rtf formatting in the text.

Example:

text "Don't believe anything that follows this note."  "The data were all made up".


or


text "Don't believe anything that follows this note."  "The data were all made up"

/outline heading= "WARNING!".



Jon Peck (no "h") aka Kim
Senior Software Engineer, IBM

peck@...
new phone: 720-342-5621




Reply | Threaded
Open this post in threaded view
|

Re: Adding and formatting comments in output?

Robert L
In reply to this post by Robert L

Many thanks for your reply, I hope to get the technicians set up the Python module soon. And that brings me to another question: the TEXT extension is part of the Python Essentials and should not require any further installation. But what about other extensions, are they possible to set up as a local user without admin priviliges, or do they have to be set up (globally?) by admins? We have got a network license for SPSS.

 

Robert

 

Från: Jon K Peck [mailto:[hidden email]]
Skickat: den 26 februari 2013 14:46
Till: Robert Lundqvist
Kopia: [hidden email]
Ämne: Re: [SPSSX-L] Adding and formatting comments in output?

 

TEXT does require the Python Essentials - in fact, I think it is included in them.  The Essentials are free and available from the SPSS Community site (www.ibm.com/developerworks/spssdevcentral) as far back as V18.  For V21, the Essentials are provided on the download site for Statistics itself.


Jon Peck (no "h") aka Kim
Senior Software Engineer, IBM
[hidden email]
new phone: 720-342-5621

Robert Lundqvist
Reply | Threaded
Open this post in threaded view
|

Re: Adding and formatting comments in output?

Jon K Peck
See below.


Jon Peck (no "h") aka Kim
Senior Software Engineer, IBM
[hidden email]
new phone: 720-342-5621




From:        Robert Lundqvist <[hidden email]>
To:        Jon K Peck/Chicago/IBM@IBMUS,
Cc:        "[hidden email]" <[hidden email]>
Date:        02/28/2013 01:59 AM
Subject:        Re: [SPSSX-L] Adding and formatting comments in output?




Many thanks for your reply, I hope to get the technicians set up the Python module soon. And that brings me to another question: the TEXT extension is part of the Python Essentials and should not require any further installation. But what about other extensions, are they possible to set up as a local user without admin priviliges, or do they have to be set up (globally?) by admins? We have got a network license for SPSS.
 
Robert

If you have write permission to the directory structure where Statistics is installed, you can install extensions yourself.  However on Win7 and Vista, typically users need admin privileges to write to or under the Program Files directory, which is the default installation location for Statistics.  If you have V21, the extension installer should divert to the APPDATA area (on Windows), but for any version you can set environment variables that point to a location or locations where you do have write permission.  In fact, some installations include a network location in the directory lists in these variables so that a network admin can update everyone by installing to a common network location.

These variables are documented in the help, but they just work like the PATH environment variable.  The names are
SPSS_CDIALOGS_PATH   (for custom dialog locations)
SPSS_EXTENSIONS_PATH (for extension commands)

See also the FAQ on the SPSS Community site.

HTH,
Jon Peck

 
Från: Jon K Peck [mailto:peck@...]
Skickat:
den 26 februari 2013 14:46
Till:
Robert Lundqvist
Kopia:
[hidden email]
Ämne:
Re: [SPSSX-L] Adding and formatting comments in output?

 
TEXT does require the Python Essentials - in fact, I think it is included in them.  The Essentials are free and available from the SPSS Community site (www.ibm.com/developerworks/spssdevcentral) as far back as V18.  For V21, the Essentials are provided on the download site for Statistics itself.


Jon Peck (no "h") aka Kim
Senior Software Engineer, IBM

peck@...
new phone: 720-342-5621