Hello, I am new to using Python. I developed a SAS program using Enterprise Guide on my windows devise. I would like to execute this program via a notebook in Jupyter Lab using Python 3.5.2. The notebook is running on a linux server.
I uploaded my .sas file to the linux server of the Jupyter notebook. I can successfully connect and create a SAS session on our Grid environment. The SAS session runs on a linux server. After installing and importing SASPY I try to submit the SAS script/file as follows:
sas.submit('/users/myuserid/files/SAS_filename.sas')
The program starts and runs for a while. It successfully creates librefs, then after the first data step I get this error:
3 The SAS System 08:16 Tuesday, October 29, 2019
21 ods listing close;ods html5 (id=saspy_internal) file=_tomods1 options(bitmap_mode='inline') device=svg style=HTMLBlue;
21 ! ods graphics on / outputfmt=png;
NOTE: Writing HTML5(SASPY_INTERNAL) Body file: _TOMODS1
22 ;*';*";*/;
23 /user/myuserid/files/SAS_filename.sas
_
180
ERROR 180-322: Statement is not valid or it is used out of proper order.
I am not sure what this means or where to start with this. None of the ODS code is in my program. Any ideas as to what is happening here?
... View more