@L0007
I guess it depends a bit what you want to report on: A) Input/Output tables used per code execution or B) Input/Output tables as defined in DIS as metadata in the job.
I've been a regular DIS user but haven't done anything with it since years now and I currently don't have access to an environment with DIS. Therefore the following from memory.
For B:
There are some built-in metadata reports which might give you the information you need. If not sufficient then you would need to query SAS metadata and build the reports yourself. This can be done but querying SAS metadata gets quickly rather involved. Given your requirement sounds not that exotic it might be worth to search the Internet a bit for some sample code that's already close to what you need. A very quick search got me https://support.sas.com/resources/papers/proceedings12/120-2012.pdf
For A:
DIS generates macro variables like &input_1, &input_2, &output_1, ....Inspect the generated code to understand what's really available.
If I remember right then these macro variables will have global scope and DIS doesn't generate code to remove them after the step. What this leads to is that an earlier step might have created and populated macro variable &input_3 but your current step has only two inputs (and though only populates &input_1 and &input_2).
If I remember right then there is some "&input_cnt" variable which you would need to use as well in order to determine how many macro variables to use for populating your log table.
In my thinking you would need to implement some autocall macro for using these macro variables and add rows to some permanent logging table. You then would call this macro variable as post code in the transformation.
Just search through the DIS generated code to figure out for what information is available in macro variables that would be useful to you.
...and then there is of course still the option to use Proc Scaproc also implemented as an autocall macro that you call as pre-code to turn Proc Scaproc on and as post-code to parse the generated file and add the information to a permanent logging table.
...If option B) is what you need and you want us to propose some actual code then please attach a .sas file with all the DIS generated code for a whole job (you could mock-up a job with only a table loader in it and share the generated code for this job. Please also add some transformation level dummy pre- and post-code so we can understand exactly where such code gets generated).
Also to consider:
DIS got discontinued under Viya. DIS jobs will need migration to SAS Studio Flow. Also the SAS Metadata Server doesn't exist anymore under Viya.
Any job querying SAS metadata will likely not migrate and require a full redo under Viya to collect and report on similar information.
I'm also not sure if migrated DIS jobs will still generate these &input_... and &output_... macro variables and though any custom code using these macro variables will potentially need a full revamp.
What should still work without requiring change would be an approach using Proc Scaproc.
... View more