I don't have access to Viya 4 so bear with me.
According to the documentation it looks like you need to use a SAS program. From your screen shot it looks like you are in a Python wrapper editor kinda, which I guess might work...?
Regardless, the log tells us that your code executed in PROC PYTHON, and somehow your syntax i incorrect.
It would be interesting to see the complete code with PROC PYTHON.
... View more