Hello everyone,
how to obtain single record per subject?
I tried below code:
proc transpose data = have;
by param;
var aval;
id trta;
run;
Its giving me an error.
Error: ID value "T1" occurs twice in the same by group.
Error: ID value "T1" occurs twice in the same by group.
Error: ID value "T2" occurs twice in the same by group.
Error: ID value "T1" occurs twice in the same by group.
Error: ID value "T2" occurs twice in the same by group.
Error: ID value "T2" occurs twice in the same by group.
Error: All BY groups were bad.
Use
by subjid;
Dive into keynotes, announcements and breakthroughs on demand.
Explore Now →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.