I'm just getting started and it's very simple code in SAS University. What am I doing wrong?? I get the following message when I run my if-then statement: ERROR 180-322: Statement is not valid or it is used out of proper order. *libnames point to the folder that contains the datasets, not the individual datasets;
libname malawi '/folders/myfolders/';
*malawi is the name of the folders and mwfemale_pubuse is the name of the dataset;
proc contents data=malawi.mwfemale_pubuse;
*Age groups 13-17 and 18-24;
if 13 <= q2 <= 18 then agegroup= 1;
if 18 <= q2 <=24 then agegroup= 2;
... View more