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

 

proc casutil;
save

casdata="cleaned_data"

casout="cleaned_data.parquet";
run;

 

Getting errors.  Suggestions greatly appreciated:

69 proc casutil;
ERROR: A connection to the Cloud Analytic Services session could not be made.
ERROR: An error has occurred.
70 save casdata="cleaned_data" casout="cleaned_data.parquet";
ERROR: An error has occurred.
71 run;
 
 

 

1 ACCEPTED SOLUTION

Accepted Solutions
JackieJ_SAS
SAS Employee

Hi,

 

SAS Studio is the interface you use to access SAS.  The SAS Studio interface can be used with two SAS products- SAS 9.4 and SAS Viya. Online versions of both of these exist. SAS OnDemand for Academics runs SAS 9.4 software. SAS Viya for Learners | SAS runs SAS Viya software.

The PROC CASUTIL code you mentioned will not run in SAS 9.4 software. It will only run in SAS Viya.

In order to use SAS Viya for Learners, you need to be an academic faculty, student, or staff and have a SAS profile with an email address affiliated with an academic institution. Do you have that?

If not, it sounds like you have SAS 9.4 on your computer, but not SAS Viya. Unfortunately, this means the PROC CASUTIL code you mentioned is not going to run on your system.

View solution in original post

14 REPLIES 14
NKormanik
Barite | Level 11

LOL.  No SAS Admins here...

So, in other words, no luck converting the SAS dataset through SAS Studio?

I wouldn't think accomplishing such a simple procedure would have restrictions.

 

Any suggestions to get around this, and accomplish it via the SAS site here??

 

SASKiwi
PROC Star

Have you had any training at all on using Viya?

 

Here's a link to the CAS doc about starting a CAS session.  I recommend you read up about getting started with Viya if you aren't sure of the steps. I've never used Viya myself but these pages look easy to follow.

NKormanik
Barite | Level 11

Uhh, me?

 

It wasn't hard simply signing up.

 

I generally use PC SAS 9.4.

 

On this one occasion I needed a .parquet file, and Python was having a hard time with the conversion.  I discovered SAS Viya has the ability to convert to .parquet.  So, this one time I thought I'd give it a try.

 

 

SASKiwi
PROC Star

You refer to "SAS Studio Online" so I can only guess you are using SAS Viya for Learners. Is this correct? If so then the links I provided earlier should help you get started.

NKormanik
Barite | Level 11

Well, when I tried out the suggestion, just got errors:

 

69 cas mySession;
ERROR: The request to start or connect to a session failed. Specify a UUID to connect to an existing session or specify a session
name, port and host name to start a session.
70
71 proc casutil;
ERROR: A connection to the Cloud Analytic Services session could not be made.
ERROR: An error has occurred.
72 save casdata="cleaned_data"
73 casout="cleaned_data.parquet";
ERROR: An error has occurred.
74 run;

 

Seems more is needed.

 

SASKiwi
PROC Star

I've moved your post here where users of SAS Viya for Learners are more likely to see it.

JackieJ_SAS
SAS Employee

Hi,

 

SAS Studio is the interface you use to access SAS.  The SAS Studio interface can be used with two SAS products- SAS 9.4 and SAS Viya. Online versions of both of these exist. SAS OnDemand for Academics runs SAS 9.4 software. SAS Viya for Learners | SAS runs SAS Viya software.

The PROC CASUTIL code you mentioned will not run in SAS 9.4 software. It will only run in SAS Viya.

In order to use SAS Viya for Learners, you need to be an academic faculty, student, or staff and have a SAS profile with an email address affiliated with an academic institution. Do you have that?

If not, it sounds like you have SAS 9.4 on your computer, but not SAS Viya. Unfortunately, this means the PROC CASUTIL code you mentioned is not going to run on your system.

NKormanik
Barite | Level 11

Well, that would explain it.  I'm just a regular person, more or less.

 

So, we don't have access to the advanced stuff, like converting a small SAS dataset to .parquet format.

 

Bummer.

 

NKormanik
Barite | Level 11

There are 'labels' included in the SAS dataset(s).  These labels are way more descriptive of the columns than the short variable names I was forced into.  I just hate losing these labels.

But, alas, we must, apparently.  I don't know that .parquet even supports such labels anyway.

 

Was worth a try.

Tom
Super User Tom
Super User

As always with a CSV file you should make a separate file that describes the variables since there is no place in the CSV file to store labels, or type, or length, or format, etc.

 

It is also not hard to make the CSV file using the labels as the column headers.  But I have no idea how that would impact the usefulness of the parquet file to have descriptions instead of names for the variables.

NKormanik
Barite | Level 11

Some of the 'labels' exceeded the length SAS allows as variable names.  Thus, had to go the short-version route.

 

Very fortunately, SAS permits 'labels', and shows those in many procedures.

 

 

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!

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
  • 14 replies
  • 812 views
  • 9 likes
  • 5 in conversation