I have a requirement and facing a problem in a part of it.
I have retreived the GDG DS names from the DS macro is called. Now using Skeleton, I am creating a JCL which will create GDG Bases if the user submits it.
The Macro will create steps in a FINAL JCL and finally open it in EDIT mode in front of user to submit it manually if he wants.
Now, I am able to get the skeleton data and put it in a FINAL JCL DS and able to make it ready for first GDG base step. Now, when the macro encounters the second GDG DS. It will pick the DS name and then open the same FINAL JCL DS in edit mode and append one more step for the GDG DS found.
Below is the code I am trying to use. But instead of performing cut/paste in FINAL JCL DS. It is doing it in the DS from where macro is getting called.