If I am using a dataset, how would I code it without coding the actual datalines. And also, how would I call the format I've just created? proc format library=work;
invalue check
'X'=1
other=0
;
value rapid
1='Rapid cleaning'
other=' ';
value wash
1='Quick wash'
other=' ';
value poor
1='Poor cleaning'
other=' ';
value other
1='Other'
other=' ';
run; I used the above code and then added the code below data K; set V(keep=ID RAPID WASH POOR OTHER); length VQ $100; vq=vq(RAPID, WASH, POOR, OTHER); if sum in (2,3) then vq=catx(',', put(RAPID, RAPID.), put(WASH, WASH.), put(POOR, POOR.), put(OTHER, OTHER.)); format RAPID RAPID. WASH WASH. POOR POOR. OTHER OTHER.; run; And I seem to be getting this error and note as well: ERROR 68-185: The function VQ is unknown, or cannot be accessed. NOTE 484-185: Format $RAPID was not found or could not be loaded
... View more