Hello SAS community!
I ran into an error that I cannot solve.
I am trying to run proc phreg within a macro. The portion of the code is presented below...
For some reason, I am having a following error message.
Any advises are welcome! Thank you.
Hello @_MooMoo,
Correct the definition of macro variable ADJ_STRAT. Apparently, it contains a semicolon, which ends the MODEL statement so that "/rl ..." appears as the beginning of a new, of course invalid statement.
What is the R1 option supposed to do? I don't find that as an option on the model statement in the documentation.
If you borrow options from other procedures they don't always exist in others or may need other steps to accomplish similar tasks.
Hello @_MooMoo,
Correct the definition of macro variable ADJ_STRAT. Apparently, it contains a semicolon, which ends the MODEL statement so that "/rl ..." appears as the beginning of a new, of course invalid statement.
Thanks! This was it!
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.