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

When you import data through the Manage Data visual interface, is there a way to save the code (similar to how we could save the code in the 9.4 import wizard)?

 

I need this because my attempts to import with code don't work but importing through the interface does work.  This would help me know what I am doing wrong.  

1 ACCEPTED SOLUTION

Accepted Solutions
BenRyan
SAS Employee

Unfortunately, there is not.  If you are doing a local file import then the "code" is actually a set of REST calls to the SAS Viya microservices.  The most important of these is a POST to the CAS Management service to stream the data to the CAS server to have the table created.  Internally CAS Management is using the CAS Java client to invoke a table.upload CAS action.

 

If you are importing an unloaded table from a caslib, then the code for performing the import is contained in the corresponding Job Definition used to run the Import job.  All of these job definitions are running CASL code, and they should be publicly viewable using the Job Definitions service REST API to retrieve them.  The returned definition will have a "code" member that contains the parameterized CASL code block that it uses.

View solution in original post

1 REPLY 1
BenRyan
SAS Employee

Unfortunately, there is not.  If you are doing a local file import then the "code" is actually a set of REST calls to the SAS Viya microservices.  The most important of these is a POST to the CAS Management service to stream the data to the CAS server to have the table created.  Internally CAS Management is using the CAS Java client to invoke a table.upload CAS action.

 

If you are importing an unloaded table from a caslib, then the code for performing the import is contained in the corresponding Job Definition used to run the Import job.  All of these job definitions are running CASL code, and they should be publicly viewable using the Job Definitions service REST API to retrieve them.  The returned definition will have a "code" member that contains the parameterized CASL code block that it uses.

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!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

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
  • 1 reply
  • 422 views
  • 0 likes
  • 2 in conversation