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

hello

i am trying to connect to a database via db2. the following is my code and store the result into MYWORK :


rsubmit;

libname mywork 'h:\user\my document\myfile';

%let mydbpasswd=%str({sasenc}12222222222221);

proc sql;

connect to db2 (dsn="table" user=ismine pass=&mydbpasswd");

create table mywork.status as

    select * from connection to db2

          (select prod_id, prod_name,status from table1);

disconect from db2;

quit;

endrsubmit;

The log reproduced my code and and finish by "Remote submit to SASGRID complete",

  I cannot find mywork library i created neither a data( dataset Status).

Any help?  Thank you in advance

1 ACCEPTED SOLUTION

Accepted Solutions
SASKiwi
PROC Star

The MYWORK library is stored on the SAS server you did a remote submit to not your PC.

Since your server appears to use Windows you could try a UNC in Windows Explorer along the lines of: \\SASServerName\HDrive\user\my document to get to that folder location. You will need to substitute SASServerName and HDrive with the names that will work on your server.

View solution in original post

2 REPLIES 2
SASKiwi
PROC Star

The MYWORK library is stored on the SAS server you did a remote submit to not your PC.

Since your server appears to use Windows you could try a UNC in Windows Explorer along the lines of: \\SASServerName\HDrive\user\my document to get to that folder location. You will need to substitute SASServerName and HDrive with the names that will work on your server.

rosietav
Calcite | Level 5

I agree with SASKiwi. It looks like you need to change your libname path to refer to your server file path. Something like:

%let serverinfo=xxx.xx.com;

libname mywork '/user/mywork' server=serverinfo;

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!

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
  • 2 replies
  • 578 views
  • 3 likes
  • 3 in conversation