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.

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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