DATA Step, Macro, Functions and more

Extracting Log into a table

Accepted Solution Solved
Reply
New User
Posts: 1
Accepted Solution

Extracting Log into a table

Hi,

Is there a way to extract items from the log and save to a dataset?  The items in red

NOTE: Writing TAGSETS.SASREPORT13(EGSR) Body file: EGSR

21        

22         GOPTIONS ACCESSIBLE;

23         data WORK.GOC_MainNode_Final (drop=CNT) ;

24              set GOC_MainNode_temp;

25              by subnode DESCENDING node_id_lvl  ;

26              retain cnt;

27              if first.subnode then cnt=0;

28            cnt=cnt+1;

29              if cnt=1 then output;

30         run;

 

NOTE: Compression was disabled for data set WORK.GOC_MAINNODE_FINAL because compression overhead would increase the size of the

      data set.

NOTE: There were 3 observations read from the data set WORK.GOC_MAINNODE_TEMP.

NOTE: The data set WORK.GOC_MAINNODE_FINAL has 2 observations and 3 variables.

NOTE: DATA statement used (Total process time):

      real time           0.00 seconds

      user cpu time       0.00 seconds

      system cpu time     0.01 seconds

      memory              574.96k

      OS Memory           19872.00k

      Timestamp           01/11/2018 12:14:01 PM

      Step Count                        60  Switch Count  56

      Page Faults                       0

      Page Reclaims                     17

      Page Swaps                        0

      Voluntary Context Switches       171

      Involuntary Context Switches      0

      Block Input Operations            8

     Block Output Operations           144


Accepted Solutions
Solution
‎01-11-2018 03:03 PM
Super User
Posts: 24,003

Re: Extracting Log into a table

Search LexJansen.com for log parsing code that will parse the log and itemize the errors. If you're using SAS EG or SAS Studio they have default methods of organizing the errors that makes it a bit easier to manage.

View solution in original post


All Replies
Solution
‎01-11-2018 03:03 PM
Super User
Posts: 24,003

Re: Extracting Log into a table

Search LexJansen.com for log parsing code that will parse the log and itemize the errors. If you're using SAS EG or SAS Studio they have default methods of organizing the errors that makes it a bit easier to manage.

☑ This topic is solved.

Need further help from the community? Please ask a new question.

Discussion stats
  • 1 reply
  • 110 views
  • 0 likes
  • 2 in conversation