Rexx code to create the GDG Bases ?



IBM's Command List programming language & Restructured Extended Executor

Rexx code to create the GDG Bases ?

Postby irsnivas » Sat Oct 22, 2011 12:12 pm

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?
irsnivas
 
Posts: 1
Joined: Thu Sep 09, 2010 11:48 am
Has thanked: 0 time
Been thanked: 0 time

Re: Rexx code to create the GDG Bases ?

Postby expat » Sat Oct 22, 2011 3:13 pm

Use EXECIO to create a stem from the input file and then execute the relevant IDCAMS statements to build the bases
expat
 
Posts: 459
Joined: Sat Jun 09, 2007 3:21 pm
Has thanked: 0 time
Been thanked: 8 times

Re: Rexx code to create the GDG Bases ?

Postby NicC » Sat Oct 22, 2011 5:04 pm

I am not really sure what you are trying to do. What file? where what dataset names are listed?
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 3025
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 136 times

Re: Rexx code to create the GDG Bases ?

Postby dick scherrer » Sun Oct 23, 2011 8:36 am

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.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Re: Rexx code to create the GDG Bases ?

Postby Akatsukami » Sun Oct 23, 2011 9:18 pm

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.
"You have sat too long for any good you have been doing lately ... Depart, I say; and let us have done with you. In the name of God, go!" -- what I say to a junior programmer at least once a day
User avatar
Akatsukami
Global moderator
 
Posts: 1058
Joined: Sat Oct 16, 2010 2:31 am
Location: Bloomington, IL
Has thanked: 6 times
Been thanked: 51 times


Return to CLIST & REXX

 


  • Related topics
    Replies
    Views
    Last post