Re: Help with macros
Posted by Kirill Orlov on
URL: http://spssx-discussion.165.s1.nabble.com/Help-with-macros-tp5740865p5740874.html
Eleonora
To let the macro "know" a value generated by a regular syntax (such as a value from a dataset) within the same macro you will have to use WRITE and then INSERT comnands. It is tricky and not very much convenient, but is possible.
(The reason why it is a problem is that macros and regular syntax are not on the same level to call-over between them. Macro is an "envelope" for syntax, it can pass a parameter to syntax, but not vice versa.)
It is more convenient, many users think, to do such things like your task through Python programmability than through a macro.
But I'll show in the next reply how to do it in macro.