in one of the codes that I am working on has:
if startdate ne. ; * subsetting if: exclude obs meeting condition;
What does that bold statement do in this code.
Thanks.
As long as this is open code, it doesn't have any effect. The subsetting ends with the first semicolon, the asterisk indicates that the rest of the line (up to the 2nd semicolon) is a comment.
thnx for your reply. if the asterisk sign is not present then what does it really mean...
It mens select startdate not missing rows!
Comments in SAS can be of the form
Now all this is extremely abbreviated and subject to omissions/errors that my fellow peers will eventually point out.
What it boils down to in the context of your question:
The "bold statement" is nothing but a comment that tries to explain the non-bold statement (ie. the subsetting if) to its left.
Hope this makes sense
Robert
Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9.
Lock in the best rate now before the price increases on April 1.
Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.