Running the above piece of code I'm getting an error saying the dataset households does not exist; data have;
infile cards expandtabs;
input from $ to $ ;
cards;
1 104428 Married
2 36186 Parent
3 507094 Parent
4 147446 Parent
5 453559 Parent
6 395150 Sibling
7 495697 Married
8 430549 Parent
9 430304 Married
10 110819 Married
11 218256 Married
12 199523 Married
13 72263 Parent
14 73282 Married
15 87799 Parent
16 376709 Parent
17 9042 Married
18 421753 Parent
19 463196 Sibling
20 97903 Married
87799 15 Child
376709 16 Child
9042 17 Married
421753 18 Child
463196 19 Sibling
97903 20 Married
;
run;
%SubGraphs(have,out=households);
proc sql;
create table want as
select node as ID, cats('x_',clust+99) as Household_id length=8
from households order by length(ID)>2, clust, node;
quit;
... View more