Can someone please explain this a little further? Is there a greater than symbol in a?
Which of the following does not have proper syntax for specifying a range in the VALUE statement?
a. 500>-700 |
b. 500-<700 |
c. 'A'-'C' |
d. 'Horse'-'Mouse' |
Your answer: b
Correct answer: a
The greater than symbol is not valid for a range. The less than symbol can be used after the starting value or before the ending value.
Hi @mintbit
By default, a simple hyphen (-) means that boundaries are included.
To exclude them, you can use the inferior sign: <
Best,
Thank you for the reply. It is much clearer now. My question seems so stupid now that I understand the answer 😅
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.