For doing analysis in a proc, we would need to look into the datasets and control cards. But it may take some time, as there would be symbolic present for the DSN. We need to substitute symbolic and then go to 3.4 option and then look into the dataset.
To minimize this effort, I have written a REXX tool “SYMSUB” to substitute all the symbolic in a proc. Please find the document in the below Link.
REXX TOOL TO SUBSTITUTE SYMBOLICS IN A PROC
If you would like to Earn Free Stocks, Credit card Points and Bank account Bonuses, Please visit My Finance Blog
You may also like to look at:
Is it something like CB (for browsing datasets) & CE (to edit datasets) ?
No Jitesh. This tool substitutes the symbolics that you have at the top of PROC/JCL, so that it would be easy for you to analyze PROC/JCL.
Is it possible to read commented symbolic names in the proc/jcl? If yes, could you please share me the code? I could see ur code it has handled non-commented lines of symbolic names.
Hi Sudhakar.. In the REXX code, you can see below line
IF SUBSTR(IN.LNUM,3,1) = ‘*’ THEN ITERATE
If you think, you do not have any other commented lines, apart from some symbolic names being commented, you can remove the above line from code. And use it to also refer to commented symbolic names. If you have any samples, please provide me. I will try and provide you the solution.
Thanks
Rajesh A R
Hi Rajesh,
I have sample proc which has the below structure,
//TESTPROC PROC HLQ1=, *TEST.DAT1
// HLQ2=, *TEST.DAT2
// GEN1=, *+1
// PARMLIB=, *TEST.SAMPLE
Symbolic parameters are commented it with some position not lnum (3,1). Now want replace it with symbolic values. Could you please help me on this.
Hi I am at work and your page is blocked by the bank …could you please send me a copy of SYMSUB to one of my emails rick_silvers@rsilvers.com or rsilvers@mebtel.net ? I have been looking for something like this…
Done 🙂
Hi rajeshar,
For me the above mentioned REXX code is not working for my proc.Could u please help me in this issue. while executing this REXX code am getting RC =20 in the below mentioned line ‘ISREDIT LABEL’ 1 ‘= .FIRST
Hi Pattu
Hope you have setup your REXX PDS in the SYSEXEC or SYSPROC using the info in the blog
https://mainframesf1.com/2016/02/11/rexx-initial-setup/
Now you need to enter the REXX MACRO command by opening your PROC and just enter the MACRO name at the command line “SYMSUB”.
Hi Rajeshar,
Do you have REXX tool to expand a PROC in JCL?
Hi Zt, I do nto have one developd already and could not spend much time. So I googled around and found the below tool. It might have what you are looking for.
https://mainframesf1.com/2018/04/03/rexx-tool-jcl-expansion-proc-include-get-dataset/
Thank you for your attention. I did found the same link but somehow the code is not accessible. Thanks anyway. Really appreciate your help. Have a good day.
Hi Rajeshar,
I am getting the error as error aalocating the INDD files, I have seen INDD in your code and DSN parameter do we need to provide any dataset name over there??
Please reply fast if possible
Yes Sushil, you need to give an actual dataset name where you have DSN (Data set Name).
Hi Rajeshar,
The Catalogued PROC is not updated with the Symbolics.
Could you please help me whether any action item required for Catalogued proc?
Hi Uthay, I do not have one developd already and could not spend much time. So I googled around and found the below tool. It might have what you are looking for.
https://mainframesf1.com/2018/04/03/rexx-tool-jcl-expansion-proc-include-get-dataset/