BookmarkSubscribeRSS Feed
kumarsandip975
Pyrite | Level 9

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
PROC Star

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-white.png

Missed SAS Innovate in Orlando?

Catch the best of SAS Innovate 2025 — anytime, anywhere. Stream powerful keynotes, real-world demos, and game-changing insights from the world’s leading data and AI minds.

 

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

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