BookmarkSubscribeRSS Feed
DavidLie
Obsidian | Level 7

Hi SAS Studio Expert,


This is the first time that I'm using (and accessing) the SAS Studio. I guess the first part is to create a CAS connection and I'm having trouble with that. The error message that I'm getting is:

ERROR: The host name 'sas1' could not be found.
ERROR: Unable to connect to Cloud Analytic Services sas1 on port 5570. Verify connection parameters and retry.

 

When I hover around the community, I notice that I need to connect something to somewhere. If you can teach me some of the steps, that would be awesome.

 

Thanks.


Best,
David

 

 1          OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 72         
 73         /*****************************************************************************/
 74         /*  Set the options necessary for creating a connection to a CAS server.     */
 75         /*  Once the options are set, the cas command connects the default session   */
 76         /*  to the specified CAS server and CAS port, for example the default value  */
 77         /*  is 5570.                                                                 */
 78         /*****************************************************************************/
 79         
 80         options cashost="sas1" casport=5570;
 81         cas;
 ERROR: The host name 'sas1' could not be found.
 ERROR: Unable to connect to Cloud Analytic Services sas1 on port 5570. Verify connection 
        parameters and retry.
 82         
 83         OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 95         
5 REPLIES 5
alexal
SAS Employee

Are you sure sas1 is a valid fully qualified domain name (FQDN) of the CAS server?

alexal
SAS Employee
Also, if you are connecting to the CAS server from SAS Studio V, you do not have to specify the hostname.
DavidLie
Obsidian | Level 7

Hi alexal,

 

Thank you for replying. I'm unsure - just following some tutorials. How do we check the FQDN? Are there any guidelines that I can follow? Your help is greatly appreciated.

David

alexal
SAS Employee
Open the SAS Environment Manager http://<SAS_VIYA_HOSTNAME>/SASEnvironmentManager/ and go to the "Servers" menu on the left-hand side. Then on the right-hand side, you will see the actual hostname of your CAS server. Again, if you are connecting from the SAS Studio V, then you do not have to specify the name of the server.
Willdon
Calcite | Level 5

i m the same error as well.

 

data mycas.getstart;
infile datalines delimiter='|' missover;
length text $150;
input text$ did;
datalines;
Reduces the cost of maintenance. Improves revenue forecast. | 1
Analytics holds the key to unlocking big data. | 2
The cost of updates between different environments is eliminated. | 3
Ensures easy deployment in the cloud or on-site. | 4
Organizations are turning to SAS for business analytics. | 5
This removes concerns about maintenance and hidden costs. | 6
Service-oriented and cloud-ready for many cloud infrastructures. | 7
Easily apply machine learning and data mining techniques to data. | 8
SAS Viya will address data analysis, modeling and learning. | 9
Helps customers reduce cost and make better decisions faster. | 10
Simple, powerful architecture ensures easy deployment in the cloud.| 11
SAS is helping industries glean insights from data. | 12
Solve complex business problems faster than ever. | 13
Shatter the barriers associated with data volume with SAS Viya. | 14
Casual business users, data scientists and application developers. | 15
Serves as the basis for innovation causing revenue growth. | 16
run;

proc cas;
loadtable caslib="ReferenceData" path="en_stoplist.sashdat";
run;
quit;

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
  • 5 replies
  • 1854 views
  • 0 likes
  • 3 in conversation