In SAS Viya, which statement correctly establishes a connection to a CAS server within a SAS program?
Select an answer to reveal the explanation.
Short Explanation
You use the CAS statement to start a CAS session in SAS Viya, and SESSOPTS= lets you set session-level options. The other syntaxes either don't exist or only assign a library.
Full Explanation
The CAS statement with a session name and SESSOPTS=(caslib='CASUSER') is correct because it starts a CAS session in SAS Viya and sets session-level options. CONNECT TO CAS (host='mycas.company.com' port=5570) is not standard SAS syntax. PROC CASCONNECT host='mycas.company.com'; run; is invalid because no such PROC exists. LIBNAME caslib CAS host='mycas.company.com' port=5570; assigns a library reference but does not establish the session.