I'm trying to work in SAS with python (using saspy). I've just connected to remote machine with SSH and its okay. Also, I've found table that I need and everything seems to be fine. The problem occurs when I try to get the head() of dataset or describe it. The code and errors are below.
I guess something wrong with output format or options that I include in config file (I mentioned only this 'options' : ["-fullstimer "]
).
sas = saspy.SASsession(cfgname='ssh')
dataset = sas.sasdata('tablename','libname')
dataset.head()
Internal code execution failed: ERROR 22-322: Syntax error, expecting one of the following: ;, ANTIALIAS, ANTIALIASMAX, BORDER, DISCRETEMAX, GROUPMAX,
libname
? And a dataset namedlibname.tablename
? Try it withdataset = sas.sasdata('class','sashelp')
– Tomsaslib
, i have no problems while getting data withsasdata
, but with head() or describe() etc. – kptkhv