Hello,
I know XDC but it's online. I want to achieve the same in batch using JCL.
It will not happen "using JCL". The JCL will execute some program (preferable SDSF in batch).
I don't know what is PRINT OSDN. Also I am not sure of the JCL syntax to achieve the same result as XDC.
Suggest you use the Help feature for SDSF. Look at "HELP: PRINT Command -- Opening a Print Data Set" online and continue thru the help material.
To Repeat from earlier. . .
Did you work thru the process online before trying to do this in a batch job? Did the online test work? If it did not, you probably need to work with your technical support people to get it working. Then move forward. . .
So, have you succeeded using PRINT ODSN online? If not, you need to do this. If this will not work even for your technical support people on your system, it will surely not work in batch. . .