Architecting, installing and maintaining your SAS environment

update control table information

Accepted Solution Solved
Reply
Contributor
Posts: 41
Accepted Solution

update control table information

Hi,

In DI studio Jobs development I need to populate one control table(For client view) having below info how can I get this info through status handling or need to write any post code advise me.

if code pls give me some sample code.

Job name

Library

Job start time

Job end time

No. Records before

No. Records after

Table name

Job return code


Accepted Solutions
Solution
‎01-23-2014 03:14 AM
Frequent Contributor
Posts: 106

Re: update control table information

if you are using DI studio then these can be automatically collected by just enabling Status handling property of DI studio there is no need to write any manual code any where in the job.

job properties>status handling tab>new job condition > choose send job status

then provide output dataset where these results will be accumulated.

View solution in original post


All Replies
Super User
Posts: 5,260

Re: update control table information

Some of the you could get through macro variables created automatically by DIS, such as rc, job name, start and end time.

Records before/after you probably need some PROC CONTENTS/SASHELP.VTABLE query.

I recommend that you carefully examine the code generated by DI Studio, and then try to a programming effort. Please get back if you any specific problem arises.

Data never sleeps
Solution
‎01-23-2014 03:14 AM
Frequent Contributor
Posts: 106

Re: update control table information

if you are using DI studio then these can be automatically collected by just enabling Status handling property of DI studio there is no need to write any manual code any where in the job.

job properties>status handling tab>new job condition > choose send job status

then provide output dataset where these results will be accumulated.

Contributor
Posts: 41

Re: update control table information

Hi Pradeep,

Thanks for your answer, as you suggested I given job level but the client asking flow level statistics in one table. LSF is capable to produce flow statics if pls advise me. 

☑ This topic is solved.

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

Discussion stats
  • 3 replies
  • 945 views
  • 3 likes
  • 3 in conversation