In SAS Viya, a data scientist wants to list all CAS tables available in a specific caslib called 'MYDATA'. Which CAS action accomplishes this?
Select an answer to reveal the explanation.
Short Explanation
You use the CAS action cas.table.listTables(caslib='MYDATA') to list all tables in the specified caslib. It returns metadata about each in-memory table, so you can see what's available in MYDATA.
Full Explanation
The CAS action cas.table.listTables(caslib='MYDATA') is correct because the table.listTables CAS action with the caslib parameter lists all tables available in the specified caslib, returning metadata about each in-memory table. The PROC DATASETS LIBRARY=MYDATA LIST; RUN; approach works for SAS libraries on disk but does not address CAS in-memory tables in a caslib. The cas.builtins.help(caslib='MYDATA') action provides help documentation, not table listings. The PROC CONTENTS DATA=MYDATA._ALL_; RUN; approach is a SAS 9-style method for SAS libraries, not CAS caslibs.