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

Hello everyone,

 

I would like to store dataset  in a remote subit session to a global dataset.

How could I do that?

 

example:

 

%global  data global_dataset;

 

*assume all connection to another host is successed;

rsubmit;

* assume i get a dataset b  from the host database;

 

*this is what I have tried;

data a;

    set b;

run;

 

ENDRSUBMIT:
SIGNOFF;

 

proc print a; 

*a gets no rows

 

 

 

Anyone can help?

1 ACCEPTED SOLUTION

Accepted Solutions
Kurt_Bremser
Super User

To copy a dataset from the remote to the local session in a SAS/CONNECT context, use proc download.

This:

%global  data global_dataset;

will only put the macro variables &data and &global_dataset into the global symbol table.

View solution in original post

5 REPLIES 5
Kurt_Bremser
Super User

To copy a dataset from the remote to the local session in a SAS/CONNECT context, use proc download.

This:

%global  data global_dataset;

will only put the macro variables &data and &global_dataset into the global symbol table.

R_Chung
Quartz | Level 8

it succeeds to get data after editing to 

proc download data=b out=a;

run;

 

 

However, after running the sas code in Unix, a message is occured:

No registered SAS sessions match target info

R_Chung
Quartz | Level 8

/unix_location> sas myProgram.sas
/unix_location> No registered SAS sessions match target info

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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
  • 5 replies
  • 882 views
  • 1 like
  • 3 in conversation