Python + Macro

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

Python + Macro

drfg2008
Am I right, that it is not possible to integrate Python code into a macro?

Frank
Dr. Frank Gaeth

Reply | Threaded
Open this post in threaded view
|

Re: Python + Macro

J. R. Carroll
Hi Frank, 

I'm not sure on the 'direct' answer to your question, but I did a quick Google search and found a similar question (from an older version no doubt).


If you /can't/ put Python into an SPSS macro, can you accomplish the same goal by putting the macro inside of a Python block?

HTH,

-J
 
----


J. R. Carroll


On Tue, Jan 17, 2012 at 10:47 AM, drfg2008 <[hidden email]> wrote:
Am I right, that it is not possible to integrate Python code into a macro?

Frank

-----
Dr. Frank Gaeth
FU-Berlin

--
View this message in context: http://spssx-discussion.1045642.n5.nabble.com/Python-Macro-tp5152540p5152540.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: Python + Macro

David Marso
Administrator
In reply to this post by drfg2008
What are you trying to do Frank???
From the FM pg 609:
ftp://public.dhe.ibm.com/software/analytics/spss/documentation/statistics/20.0/en/client/Manuals/IBM_SPSS_Statistics_Command_Syntax_Reference.pdf
---
Limitations
 The BEGIN DATA—END DATA commands are not allowed within a macro.
 BEGIN PROGRAM-END PROGRAM commands are not supported within a macro.
 The DEFINE command is not allowed within a macro.
BUT, I guess it *ALL* depends upon what you mean by integration and what you are attempting to achieve!
---
drfg2008 wrote
Am I right, that it is not possible to integrate Python code into a macro?

Frank
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: Python + Macro

drfg2008
Thanks.

I found a solution in Python now.

(Thought about combining Macro and Python since my computer's RAM (3 GB DDR2) told me not to have enough memory (while running Python) whereas with Macro there was never a problem with RAM)

Frank
Dr. Frank Gaeth