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!
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
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.