BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
Santt0sh
Lapis Lazuli | Level 10
Hi All,

I am using PC SAS 9.x and
trying to use a SAS libname (Local , Teradata or Oracle) in a SAS remote session.
I have tried assigning the Libname within the Rsubmit;
I'm still getting the libname not assigned Error:


I have SAS access interface to
DB2,Oracle,Teradata, PC Files, OFBC, and to MYSQL.




RSUBMIT;
Libname dbtmp teradata user = myname password = xxxxxx tpid = 'xxxxx' schema = 'aaaaaaa';

Libname Winlib 'local path';

Data winlib.emp;
Set tmpdb.employee;
Run;


EndRsubmit;



1 ACCEPTED SOLUTION

Accepted Solutions
Tom
Super User Tom
Super User

I cannot figure out what you are asking about.

 

There is no reason you have to use a different member name as you did in your example.

proc download data=remote.member out=local.member status=n; run;

Or perhaps use the SELECT statement with the INLIB= and OUTLIB= options?

proc download inlib=remote outlib=local status=n;
  select member1 member2;
run;

You might also want to look at the INHERITLIB= option on the SIGNON command.

https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/connref/p0brzkmxqg483hn163ek01h4mf6e.htm

View solution in original post

4 REPLIES 4
SASKiwi
PROC Star

Please post the complete SAS log including all SAS messages of your RSUBMIT program.

Tom
Super User Tom
Super User

I assume you are trying to copy files from a libref that works on the REMOTE session to a libref that works on the LOCAL session.  Why not use PROC DOWNLOAD?  That is what it is for.

Libname Winlib 'local path';

rsubmit;
libname dbtmp teradata user = myname password = xxxxxx tpid = 'xxxxx' schema = 'aaaaaaa';

proc download status=n out=winlib.emp data=tmpdb.employee;
run;
endrsubmit;
Santt0sh
Lapis Lazuli | Level 10
Hi Tom!

Thank You for your response,
The Proc download is working fine with the libname assignments but when I m trying to take a count of the previously created dataset saved on the sas library.
I can use the previous created dataset from in Remwork by name it as prev or some other name. But one of my colleagues who was doing things manually doesn't like this or wants to see the same names datasets

I'm not sure how do I attach the logs to this post.
Tom
Super User Tom
Super User

I cannot figure out what you are asking about.

 

There is no reason you have to use a different member name as you did in your example.

proc download data=remote.member out=local.member status=n; run;

Or perhaps use the SELECT statement with the INLIB= and OUTLIB= options?

proc download inlib=remote outlib=local status=n;
  select member1 member2;
run;

You might also want to look at the INHERITLIB= option on the SIGNON command.

https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/connref/p0brzkmxqg483hn163ek01h4mf6e.htm

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

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
  • 4 replies
  • 966 views
  • 0 likes
  • 3 in conversation