Hello
I am very new to SAS (9.1) and this is probably a really easy question but I'm gonna ask it anyway:
I have a group of codes I am looking for in an "infile" statement. Some of specific and others I want any that begins with it to show up.
For instance, the code in question is residence code. The format is 0000232, 0001804 etc. I want to indicate some specifically and then any that starts with 00002 or 00007.
It doesn't appear that the following is working:
If rescode in ("0001804","0003301","00007*","00002*") then output mylib.dad200405res;
What am I doing wrong? Thanks.
Shelby
I am very new to SAS (9.1) and this is probably a really easy question but I'm gonna ask it anyway:
I have a group of codes I am looking for in an "infile" statement. Some of specific and others I want any that begins with it to show up.
For instance, the code in question is residence code. The format is 0000232, 0001804 etc. I want to indicate some specifically and then any that starts with 00002 or 00007.
It doesn't appear that the following is working:
If rescode in ("0001804","0003301","00007*","00002*") then output mylib.dad200405res;
What am I doing wrong? Thanks.
Shelby