I don't have access to Viya so can't point to the specific approach.
However SAS has had an option FMTERR or NOFMTERR that treats unavailable formats as errors or not for a very long time. So you might look here:
https://documentation.sas.com/?cdcId=pgmsascdc&cdcVersion=9.4_3.5&docsetId=lesysoptsref&docsetTarget=p1djbl02hfnoe3n0zh2i3uu2aqrf.htm&locale=en
which has note where to check in Viya for the setting.
... View more