From e5592a2eb2e9a131fdaa5434659d30bddf084f96 Mon Sep 17 00:00:00 2001 From: Allan Bowe Date: Sat, 28 Aug 2021 14:21:36 +0300 Subject: [PATCH] chore: avoiding the string 'ERROR:' in logs --- all.sas | 4 ++-- base/mp_filtervalidate.sas | 2 +- base/mp_jsonout.sas | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/all.sas b/all.sas index 2c58470..774bae5 100644 --- a/all.sas +++ b/all.sas @@ -4116,7 +4116,7 @@ run; data &outds; if &sqlrc or &syscc or &syserr then do; - REASON_CD='VALIDATION_ERROR: '!! + REASON_CD='VALIDATION_ERR'!!'OR: '!! coalescec(symget('SYSERRORTEXT'),symget('SYSWARNINGTEXT')); output; end; @@ -5391,7 +5391,7 @@ create table &outds (rename=( @details PROC JSON is faster but will produce errs like the ones below if special chars are encountered. - > ERROR: Some code points did not transcode. + > (ERR)OR: Some code points did not transcode. > An object or array close is not valid at this point in the JSON text. diff --git a/base/mp_filtervalidate.sas b/base/mp_filtervalidate.sas index 4d6b1e8..7544291 100644 --- a/base/mp_filtervalidate.sas +++ b/base/mp_filtervalidate.sas @@ -78,7 +78,7 @@ run; data &outds; if &sqlrc or &syscc or &syserr then do; - REASON_CD='VALIDATION_ERROR: '!! + REASON_CD='VALIDATION_ERR'!!'OR: '!! coalescec(symget('SYSERRORTEXT'),symget('SYSWARNINGTEXT')); output; end; diff --git a/base/mp_jsonout.sas b/base/mp_jsonout.sas index 6b3a9f3..ca65ee8 100644 --- a/base/mp_jsonout.sas +++ b/base/mp_jsonout.sas @@ -4,7 +4,7 @@ @details PROC JSON is faster but will produce errs like the ones below if special chars are encountered. - > ERROR: Some code points did not transcode. + > (ERR)OR: Some code points did not transcode. > An object or array close is not valid at this point in the JSON text.