BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
suncawy
Obsidian | Level 7

My SAS program contains a PRXPARSE statement, but it writes every changes it makes to the SAS log causing the log to balloon to over several gigabytes.  I have suppressed what should be written to the log :  options MSGLEVEL=N nonotes nosource NOPRINTMSGLIST noerrorabend missing=" " ;

Yet, it still writes everything the PRXPARSE is doing:

suncawy_0-1633104397998.png

Is there a way to suppress these from writing to the log ?

Thank you.

 

1 ACCEPTED SOLUTION

Accepted Solutions
Tom
Super User Tom
Super User

PRXPARSE() is NOT writing those messages.

Check your code more carefully to see what statement is writing that message.

View solution in original post

4 REPLIES 4
Tom
Super User Tom
Super User

PRXPARSE() is NOT writing those messages.

Check your code more carefully to see what statement is writing that message.

suncawy
Obsidian | Level 7

Oh, I missed this in the code:

do i = 1 to dim(chars);
if chars[i] NE "" then DO;
if verify(strip(chars[i]),check) >0 then do;
put "fixing: " chars[i]=;
chars[i]= prxchange(rex_sub, -1, chars[i]);
put "fixed : " chars[i]=;
end;
end;
end;*do i;
drop i;

 

That's the culprit.  Thank you.

data_null__
Jade | Level 19

@suncawy wrote:

Oh, I missed this in the code:

do i = 1 to dim(chars);
if chars[i] NE "" then DO;
if verify(strip(chars[i]),check) >0 then do;
put "fixing: " chars[i]=;
chars[i]= prxchange(rex_sub, -1, chars[i]);
put "fixed : " chars[i]=;
end;
end;
end;*do i;
drop i;

 

That's the culprit.  Thank you.


A bit off topic but from your picture of the log looks like nothing was changed.  What is the value of CHECK and what is the regEX stored in REX_SUB?  In other words what are you fixing?

Reeza
Super User
Those look to be from a PUT statement somewhere in the code, ie somewhere the code is explicitly printing that information to the log. That is not default log messages.

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 4 replies
  • 510 views
  • 3 likes
  • 4 in conversation