• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 881
  • Last Modified:

SAS ENTERPRISE GUIDE - Code

May I know what I am missing, I am getting errors as per below, [after code]

data TestFullfilment;
       merge      mkMaster._membship_info_ (in = a)
                  mkMaster._members_info_ (in = b)
                  mkMaster._contact_info_ (in = c) ;
                  by membship_id ;
                  if a= 1 and b = 1 and c = 1 ;
                  if membship_id = "50098850";
run ;

ERROR: Libname MKMASTER is not assigned.
ERROR: Libname MKMASTER is not assigned.
ERROR: Libname MKMASTER is not assigned.

HOW DO i ASSIGN THE LIBRARY ? IT IS ON SERVER.
THANKS,
0
premkripalani
Asked:
premkripalani
  • 2
  • 2
1 Solution
 
Aloysius LowCommented:
do you know the physical location on the server the library mkmaster is supposed to point to?

you can do library assignment by using the following code:
libname mkmaster "[full path to physical location]";

e.g. for windows, if the datasets where mkmaster refers to resides in D:\data\mydata/, then the code would look like: libname mkmaster "D:\data\mydata";
for unix/aix/solaris, if the datasets where mkmaster refers to resides in /data/mydata/, then the code would look like: libname mkmaster "/data/mydata/";

however one thing to note is this way of doing things will override whatever security your sas administrator may have set for the library/tables in the library, so if there's a metadata server involved, it is not the best way to do things. rather, the sas administrator should define the library in the management console.
0
 
premkripalaniAuthor Commented:
hi,
my library is in the SAS folders.
for example, if I want to open the mkMaster._membship_info_ table, I follow this steps
Look in : SAS Folders, ABC LTD, Librraries,Production1, mkMaster

May I know, what should be the code to assign the library.
thanks
0
 
Aloysius LowCommented:
can you do a screenshot or something? i believe you are using EG4.2 right? sorry, i'm not using EG4.2, so i'm not too sure here

from your description, it seems like you are using a folder path which is already starts from a certain location on the server, sort of a logical start point. if this is the case, it's quite difficult to help. what I can say is that your libname statement should look like:
libname mkmaster "[path to SAS Folders]/ABC LTD/Libraries/Production1/mkMaster";
Again, the direction of the slash depends on your server.
0
 
premkripalaniAuthor Commented:
all good,
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Improve Your Query Performance Tuning

In this FREE six-day email course, you'll learn from Janis Griffin, Database Performance Evangelist. She'll teach 12 steps that you can use to optimize your queries as much as possible and see measurable results in your work. Get started today!

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now