I was using symbolics to generate a large portion of the SQL I was running but something didn't go right and the SQL didn't execute correctly. There is no record of the SQL with the symbolics resolved to the values they were at when it executed. I want to print the SQL that is getting executed from the sysin, with symbolics resolved, to SDSF. Is there any way I can do this?
Here is an example of what I want printed:
//SYSIN DD *,SYMBOLS=JCLONLY
LOCK TABLE &ENV..&SQLDB IN SHARE MODE;
SELECT DIGITS(COUNT(*))
FROM &ENV..&SQLDB
&WHERE1.
&WHERE2.
FOR FETCH ONLY WITH UR;
/*
LOCK TABLE &ENV..&SQLDB IN SHARE MODE;
SELECT DIGITS(COUNT(*))
FROM &ENV..&SQLDB
&WHERE1.
&WHERE2.
FOR FETCH ONLY WITH UR;
/*