Yes, the StartProcedure api is new in SPSS 15. It is part of the
structure that gives programmability code access to the core functions
that standard SPSS procedures use to access and modify data and create
pivot tables and text blocks.
However, with SPSS 14 you can do something almost equivalent using the
view module. Here are docstrings from teh ViewerText class in that
"""This class provides methods for creating a new text block in the
These methods will not work in distributed mode, and these items
are not subject to
manipulation by OMS.
This class does not work with SPSS 14.0.1 or 14.0.0 because of a
problem with the
InsertTitle automation method. However, it does work with SPSS
def insert(self, viewer, afteritem=None):
"""Insert the text object in the Viewer designated by viewer.
If afteritem is None
the item is inserted after the current item, otherwise, it
indicates the index
of the item after which the item is to be inserted. The index
bounded by the number of items in the Viewer.
The item is always inserted at the highest level in the outline
except that if
the chosen location cannot be promoted, the insertion happens
at that level.
The return value is the index of the inserted item."""
Post by King
Is spss.StartProcedrue a recent addition to the spss module? I can't
AttributeError: 'module' object has no attribute 'StartProcedure'
Post by JKPeck
If you have SPSS 15 with programmability installed, this can be done
Run the following code (it could be included via an INSERT command)
"Insert text into Viewer as a text block"
printcomment("""here are some thoughts
about my analysis so far.
It appears that inserting comments works pretty well.""")
The only condition is that you must have a dataset open when you run
this. The Viewer outline pane will show "Comment" as the outline
The text in the example was enclosed in triple quotes to allow it to
span multiple lines. The line breaks are preserved in the output.
Something similar can be done with SPSS 14 using the viewer module
Post by Haris
Response from SPSS Tech Support was that currently there is no way to
insert SPSS Text object into output via syntax.