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 and Infographic
Here's the deal — b is correct because the CAS statement is standard SAS Viya syntax for starting a CAS session, with optional SESSOPTS= to configure session-level options. A is wrong; CONNECT TO CAS is not standard SAS syntax.
Full explanation below image
Full Explanation
B is correct because the CAS statement is standard SAS Viya syntax for starting a CAS session, with optional SESSOPTS= to configure session-level options. A is wrong; CONNECT TO CAS is not standard SAS syntax. C is wrong; there is no PROC CASCONNECT. D creates a library reference but does not establish a session on its own.