I'm new to SAS and I'm trying to specify a range of string characters in an IF statement. Is it possible to do this in SAS? My line of code is as follows:
IF dishr ~IN ('00'-'23') then flag = 'Invalid';
Basically, if the user enters any other values than '00', '01', '02', ..., '10', '11', '12', ... , '23', I want to set a flag that user input is invalid. I would like to specify a range, as oppose to listing out all valid values.
Thank you for your assistance in this manner.