BookmarkSubscribeRSS Feed
Arun_SP
Fluorite | Level 6

I have a EG project with multiple process flows and various tasks (mostly query builders). Is there a way to compile the info from the various task logs into a table on a library? I only want certain information from the logs. I have the table structure already setup.

 

The table contains the follwoing columns,

  • Process_Flow - Name of the process flow in which the task is present
  • Task - Name of the task
  • Nobs_Generated - No. of recods generated as output of the task
  • Real_Time - Real time taken in seconds
  • CPU_Time - CPU time taken in seconds

 

 

1 REPLY 1
Kurt_Bremser
Super User

Use Proc printto to redirect the log to a file.

Then read the file in a data step, filter for the interesting lines, and extract your data from there.

 

make sure (by adding custom code to be run before every task) that

_CLIENTTASKLABEL

Label for the current task. This is the text label that is displayed in the project tree and the process flow.

is written to the log before every task.

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

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