Replies: 3 comments
-
Hey, I can help with this. I think the first thing to do is based upon this question: Yes, it certainly could cause problems. You shouldn't be coding your own classpath; it does say that in the instructions for configuring the IOM access method: https://sassoftware.github.io/saspy/configuration.html#attn-as-of-saspy-version-3-3-3-the-classpath-is-no-longer-required-in-your-configuration-file Did you try removing your classpath and see if that made a difference? Can you show what your configuration is, so I could have a better idea? I don't know what code you're running for the data you mentioned. That proc contents ought to run and finish, so I don't know what's going on with that or how you're determining what's happening. I would need more info. But lets start with your configuration and get rid of the classpath you coded, and go from there. Tom |
Beta Was this translation helpful? Give feedback.
-
Thanks for the response. Regarding First issue: Regarding Second issue:
|
Beta Was this translation helpful? Give feedback.
-
Hey, looking at the config file, it still has the classpath coded. What you're describing above about having a path with a number doesn't really make any sense. Would need to see the SAS Log to know what's going on. I can't reproduce anything like that. I tried the code above, and it has syntax errors. Accounting for those, it runs as I would expect. But that begs the question of what you actually ran and what it did. Without seeing anything but source code snippets, there's nothing I can really tell. I need to see actual runs of the code and output and logs. Can you run this and show the whole run, including output? Maybe there will be something I can see
|
Beta Was this translation helpful? Give feedback.
-
There are 2 things which i wanted to discuss
First
As mentioned in the #550, I have somewhat similar logic, where I am reading the large file around 7GB in chunks and do some data manipulation and eventually save each chunk as sas table but after processing around 7 iterations the system does not write further files and keeps on running but when interrupted i get a below error.
ValueError: invalid literal for int() with base 10: 'No SAS process attached. SAS process has terminated unexpectedly.
Looking at error message it might be related too #207
Guess this might be related to data so PFB details of data and log
The input sas file has around 1000 columns and 40 millions records where it has many date fields having default value as 9999-01-01(which may be out of date range for data frame)
and also has a lot of columns containing values that are blank or ".".
PFB details
SASsession Object
Access Method = IOM
SAS Config name = winlocal
SAS Config file = C:\Users\Nikki\Desktop\Scenario\venv\Lib\site-packages\saspy\sascfg_personal.py
WORK Path =
SAS Version = 9.04.01M7P08062020
SASPy Version = 5.2.2
Teach me SAS = False
Batch = False
Results = Pandas
SAS Session Encoding = wlatin1
Python Encoding value = windows-1252
SAS process Pid value = 17589
a
when interrupted, i see the below last log
Also does using classpath in config might cause this issue? I read somewhere that classpath is not needed now and should be removed as it might cause issues
Second
when I am submitting the below sas code from python, it does not create an output file and just keeps on running.
Beta Was this translation helpful? Give feedback.
All reactions