Hello,
I was wondering when doing a Proc Transpose, i want to keep one variable just as it was. And copy it to the whole dataset.
proc transpose data = TEMP.TRANSP () out = work.W6GBUSX6 () ;
by TABLE_KEY;
var INTERNAL_ORG_REFERENCE_NO AGGREGATION_ID CIC_EXT_NUM INTEREST_TYPE_CD;
copy X_SOURCE_DETAIL_CD;
run;
but the problem is the X_SOURCE_DETAIL_CD is only filled in one of the four lines...any help?
Sorry, not sure I follow. If you want that variable to remain as is and present on each line, then put it in the by line:
proc transpose data = TEMP.TRANSP () out = work.W6GBUSX6 () ;
by TABLE_KEY X_SOURCE_DETAIL_CD;
var INTERNAL_ORG_REFERENCE_NO AGGREGATION_ID CIC_EXT_NUM INTEREST_TYPE_CD;
run;
Sorry, not sure I follow. If you want that variable to remain as is and present on each line, then put it in the by line:
proc transpose data = TEMP.TRANSP () out = work.W6GBUSX6 () ;
by TABLE_KEY X_SOURCE_DETAIL_CD;
var INTERNAL_ORG_REFERENCE_NO AGGREGATION_ID CIC_EXT_NUM INTEREST_TYPE_CD;
run;
thanks.. damn, that simple
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and save with the early bird rate—just $795!
Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.