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

Good morning everyone. I'm looking for a fairly complete example of the table.upload action. There's no example in the SAS guide:
https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/caspg/cas-table-upload.htm

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
BrunoMueller
SAS Super FREQ

As the documentation states, this action can not be run using Proc CAS; action table.upload ...; See the CASL UPLOAD statement for details.

 

As for the question you mentioned: Which action loads the cars.csv file from the casuser caslib into memory?

This is the table.loadTable action.

View solution in original post

3 REPLIES 3
BrunoMueller
SAS Super FREQ

In the documentation for this action it states:

Note: The upload action cannot be run from CASL, Python, and other clients in the same way that other actions like loadTable are run. Each client provides a client-specific function or method for transferring data to the server that runs the upload action.

 

So which client application are you using? Is it a SAS program?

m_pellegrini
Calcite | Level 5
I don't understand what you mean by "The upload action cannot be run from CASL." It's an action included in the SAS guide; I need to be able to run it from code. The SAS Viya exam simulation also includes the following question:
Which action loads the cars.csv file from the casuser caslib into memory?

Select one:
a.
table.loadTable / table={caslib="casuser", path="cars.csv"};
b.
table.loadTable / caslib="casuser" , path="cars.csv";
c.
table.upload / caslib="casuser" , path="cars.csv";
d.
table.upload / table={caslib="casuser", path="cars.csv"};
BrunoMueller
SAS Super FREQ

As the documentation states, this action can not be run using Proc CAS; action table.upload ...; See the CASL UPLOAD statement for details.

 

As for the question you mentioned: Which action loads the cars.csv file from the casuser caslib into memory?

This is the table.loadTable action.

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

Discussion stats
  • 3 replies
  • 605 views
  • 1 like
  • 2 in conversation