r/code • u/massexposure • Oct 08 '23
Help Please What’s wrong with my IF statement?
I’m creating new variables. My first variable, Age_Grp went through easily, but every variable after I get the 180-322 error, “Statement is not valid or it is used out of proper order” How?!??! It is almost the same code as my Professor and i just CANNOT pin point what is wrong. The highlight is where the error begins, at my Ped_Act variable. I used proc import and formatting, which all went smoothly. HELP
0
Upvotes
View all comments
Show parent comment
0
u/massexposure Oct 09 '23
Well, good thing no one responded and I figured it out myself within an hour! I’ll put more context in the future for sure, but no need to be condescending. Again, i’m new to SAS, and new to code in general.