Hello,
I am trying to import data and run a lsmeans in SAS studio (university edition). My code is:
proc import datafile="/folders/myshortcuts/sas_folders/cpm_vals_head.tsv"
out=jd
dbms=dlm
replace;
getnames=yes;
delimiter='09'x;
run;
proc sort data=work.jd;
by gene UFID;
run;
proc mixed data=work.jd;
by gene;
class UFID row col;
model CPM = UFID /outp = JD.gr;
random row col;
lsmeans UFID;
run;
ods output covparms=JD.cp lsmeans=JD.lsm test3=JD.t3;
run;
However when trying to run this I get the error "ERROR: Libref JD is not assigned." and the program does not run after the proc mixed data; line. How can I address this? Do i need to create a library to run mixed models?
Thank you,
JD
When you use ODS Output the bit after the = is a data set name. When there is period in the name then you have told SAS that the part before the period is a library name, in this case JD.
Try;
ods output covparms=JD_cp lsmeans=JD_lsm test3=JD_t3;
to get a prefix to the dataset names.
When you use ODS Output the bit after the = is a data set name. When there is period in the name then you have told SAS that the part before the period is a library name, in this case JD.
Try;
ods output covparms=JD_cp lsmeans=JD_lsm test3=JD_t3;
to get a prefix to the dataset names.
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 lock in 2025 pricing—just $495!
Get started using SAS Studio to write, run and debug your SAS programs.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.