In Viya, select "Develop SAS Code" from the Applications menu (upper left - looks like a hamburger). This will open SAS Studio.
Once you're in SAS Studio, you can use the Table Analysis Task to perform a Chi-Sq test. (Tasks are menu driven, well, tasks, & are available in SAS Studio on the left-side icon in SAS Studio).
The Table Analysis task is under Statistics-> Descriptive.
Hope that helps.
... View more