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.

Catch up on SAS Innovate 2026

Nearly 200 sessions are now available on demand with the SAS Innovate Digital Pass.

Explore Now →
Develop Code with SAS Studio

Get started using SAS Studio to write, run and debug your SAS programs.

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
  • 1583 views
  • 0 likes
  • 2 in conversation