Page 1 of 1

Rexx code to create the GDG Bases ?

PostPosted: Sat Oct 22, 2011 12:12 pm
by irsnivas
Anyone can tell me the way how we can write the REXX Code to create GDG bases by reading the file where Datasets names are listed?

Re: Rexx code to create the GDG Bases ?

PostPosted: Sat Oct 22, 2011 3:13 pm
by expat
Use EXECIO to create a stem from the input file and then execute the relevant IDCAMS statements to build the bases

Re: Rexx code to create the GDG Bases ?

PostPosted: Sat Oct 22, 2011 5:04 pm
by NicC
I am not really sure what you are trying to do. What file? where what dataset names are listed?

Re: Rexx code to create the GDG Bases ?

PostPosted: Sun Oct 23, 2011 8:36 am
by dick scherrer
Hello,

Create a batch job to test the idcams statements to create a new gdg. Once you have this working, do as Expat suggests and generate these in a bit of rexx code, then invoke idcams.

Re: Rexx code to create the GDG Bases ?

PostPosted: Sun Oct 23, 2011 9:18 pm
by Akatsukami
irsnivas wrote:Anyone can tell me the way how we can write the REXX Code to create GDG bases by reading the file where Datasets names are listed?

Start by reading this thread.