BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
JD_UFGI
Calcite | Level 5

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

1 ACCEPTED SOLUTION

Accepted Solutions
ballardw
Super User

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.

View solution in original post

1 REPLY 1
ballardw
Super User

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.

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 1168 views
  • 0 likes
  • 2 in conversation