Question & Answer
Question
I have written a macro that saves out a file to a particular path such as 'C:\2001'. In the macro call, I specify the subdirectory as an argument. I would like to incorporate this macro into SPSS Production Facility and have a User Prompt defined, so that a Macro Symbol called @year with a default value of 200, can be used in my current macro and in other macros. How can I do this in SPSS? Below is my current macro: DEFINE MANYADD (DIR !TOKENS (1)). SAVE OUTFILE !CONCAT('"',!UNQUOTE("C:\"), !UNQUOTE(!DIR), !UNQUOTE("\"), !UNQUOTE("data3"),'.SAV"'). !ENDDEFINE. MANYADD DIR= 2001.
[{"Product":{"code":"SSLVMB","label":"IBM SPSS Statistics"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":"Not Applicable","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"Not Applicable","Edition":"","Line of Business":{"code":"LOB76","label":"Data Platform"}}]
Log InLog in to view more of this document
This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.
Historical Number
21889
Was this topic helpful?
Document Information
Modified date:
16 April 2020
UID
swg21476910