BookmarkSubscribeRSS Feed
kumarsandip975
Quartz | Level 8

Hi Co's, I wanted to upload files from local SAS studio to Mainframe and I could do it, by using Proc upload.

Same way, I wanted to upload files from local SAS Studio to Oracle, but that didn't work with Proc upload/download. Can anyone help me on this? 

2 REPLIES 2
Kurt_Bremser
Super User

You need to have a connection to the database, either with SAS/ACCESS for Oracle or SAS/ACCESS for ODBC.

Both require Oracle client software on the SAS server.

You can then define LIBNAMEs to database schemas, or use explicit pass-through to execute SQL code directly in the database.

 

Alternatively, you can export SAS data to text files, copy those to the Oracle server, and have them imported there.

SASKiwi
Opal | Level 21

PROC UPLOAD copies SAS datasets from one SAS session to another. It can't be used to copy into external databases like Oracle. PROC COPY will do it though, assuming that you have a working Oracle data connection created by using a LIBNAME statement.  

SAS INNOVATE 2024

Innovate_SAS_Blue.png

Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

Register now!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

Get the $99 certification deal.jpg

 

 

Back in the Classroom!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 195 views
  • 0 likes
  • 3 in conversation