Hello folks,
I run the code below and get no errors but it is not resulting in the expected output
Is the code technically correct?
data mitra1617;
set dad.dad1617;
ARRAY ARRAY_IC [20] INTERV_CODE_01- INTERV_CODE_20;
if PROVINCE_ISSUING_HCN='ON' and RESPONSIBILITY_FOR_PAYMENT='01' and HCN_INDEX='H'
and AGE >=18 ;
DO I=1 TO 20;
IF SUBSTR(ARRAY_IC[I],1,5) ='1HU80' THEN output;
END;
@Ranjeeta wrote:
but it is not resulting in the expected output
Explain this further. Show us the output that is not what you expect, and show us what you do expect.
42
Please post:
(1) a sample of your data
(2) The output of that sample
(3) Point which output is not expected and explain why
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!
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.