MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

REXX- Copy/Write into a GDG from a PS

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF
View previous topic :: View next topic  
Author Message
Nisha Rajan
Beginner


Joined: 01 Jun 2006
Posts: 1
Topics: 1

PostPosted: Tue Jul 04, 2006 7:22 am    Post subject: REXX- Copy/Write into a GDG from a PS Reply with quote

Hi,
My requirement is to actually receive a file and store it in a GDG . Now as we could not receive the file to a GDG , we received it in a PS.So our next constraint is to move data from PS to GDG. The GDG needs to be allocated and copied in the REXX.Please provide pointers on how to go about it.
Back to top
View user's profile Send private message
superk
Advanced


Joined: 19 Dec 2002
Posts: 684
Topics: 5

PostPosted: Tue Jul 04, 2006 9:41 am    Post subject: Reply with quote

I'm presuming for these pointers that your REXX exec will be running in a TSO address space and will be able to use TSO services:

1. Will the GDG base entry already exist? If not, you can use the TSO DEFINE command to create one.

2. Will there already be generations cataloged to the GDG? If yes, then you will have to determine what the next generation number is. Use a combination of TSO LISTCAT and OUTTRAP to list all existing generations. Add 1 to the last entry for the next generation (roll over from 9999 to 0001 if necessary).

3. Use the TSO ALLOC command to allocate the next generation explicitly, i.e.: ALLOC DD(X) DA('HLQ.GDG.G0001V00') NEW CATLG REUSE ...

4. You can copy using any preferred COPY function (IEBGENER, SORT, REPRO) or EXECIO.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Wed Jul 05, 2006 8:11 am    Post subject: Reply with quote

Nisha Rajan,

Check this link for an example of allocating a GDG version in rexx

http://www.mvsforums.com/helpboards/viewtopic.php?p=14690#14690

Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
jyoung
Beginner


Joined: 10 Nov 2005
Posts: 36
Topics: 2
Location: Flint, MI

PostPosted: Wed Jul 05, 2006 12:53 pm    Post subject: Reply with quote

How are you "receiving" the file?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group