Tom
I apologize for not understanding. Perhaps a few answers to these questions might help...
If I take the macro code from the internet, I see it starts with: %MACRO EVTSTUDY (INSET=temp.events, OUTSET=temp.eventsOut, OUTSTATS=temp.eventstats, ID=permno, EVTDATE=start, DATA=CRSP, ESTPER=110, START=-1,END=3,GAP=16,GROUP=1,MODEL=ffm); and then ends with this: %MEND EVTSTUDY;
If I am using SAS studio, can I take the entire macro code and put it into SAS Program and then call it like you noted below? or does it have to be entered as a task / utility? and then create a SAS program that utilizes the code you provided?
If I go under "tasks / utilities", would I just create an "advanced task" and past in the entire macro as I found it on the internet"? I tried that and I got this:
Error: Error parsing text XML Parsing Error: not well-formed Location: https://wrds-cloud.wharton.upenn.edu/SASStudio/main?locale=en_US&zone=GMT-05%3A00&https%3A%2F%2Fwrds-cloud.wharton.upenn.edu%2FSASStudio%2Findex= Line Number 1, Column 1: /* WRDS Macro: EVTSTUDY */ ^
This is my first time trying to utilize and creating a macro. I appreciate your patience with me.
... View more