JCL by itself does absolutely nothing
. It tells the operating system the name of a program to execute, and the data to use when executing the program. You have to find a program that will do the action you want or write a program yourself to do this.
One existing program that might do what you want is an IBM utility called IEBDG, which is documented in this manual
. Why don't you
read the documentation for this program, write the JCL to execute it, and see what happens.
And that's enough for nothing!