From 3e9d67d29fcb44f9c01bba7494f9f1da519521c8 Mon Sep 17 00:00:00 2001 From: Tom Weber Date: Mon, 28 Oct 2024 16:38:25 -0400 Subject: [PATCH] fix a copuple internal methods to use results=text as they should be --- saspy/sasbase.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/saspy/sasbase.py b/saspy/sasbase.py index c1de9248..5ec52e55 100644 --- a/saspy/sasbase.py +++ b/saspy/sasbase.py @@ -680,7 +680,7 @@ def __init__(self, **kwargs): self.workpath = self.workpath + self.hostsep if self.sascfg.autoexec: - self._io.submit(self.sascfg.autoexec) + self._io.submit(self.sascfg.autoexec, 'text') # this is to support parsing the log to find log records w/ 'ERROR' when diagnostic logging is enabled. # in thi scase the log can have prefix and/or suffix info so the 'regular' log data is in the middle, not left justified @@ -2395,7 +2395,7 @@ def symexist(self, name: str): :return: bool """ - ll = self._io.submit("%put " + name + "BEGIN=%symexist(" + name + ") "+ name+"END=;\n") + ll = self._io.submit("%put " + name + "BEGIN=%symexist(" + name + ") "+ name+"END=;\n", 'text') l2 = ll['LOG'].rpartition(name + "BEGIN=")[2].rpartition(name+"END=")[0].strip().replace('\n','') if l2 == '':