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?
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.
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.
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
What do you mean by:
after running the sas code in Unix
?
Please provide context, code and log.
/unix_location> sas myProgram.sas
/unix_location> No registered SAS sessions match target info
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.
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.