IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

To copy a GDG


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
meenakshi_forum
Warnings : 1

Active User


Joined: 27 May 2008
Posts: 121
Location: India

PostPosted: Tue Jul 01, 2008 1:04 am
Reply with quote

Is there any way to copy an existing GDG base to personal PDS?
Back to top
View user's profile Send private message
Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Tue Jul 01, 2008 1:08 am
Reply with quote

meenakshi_forum wrote:
Is there any way to copy an existing GDG base to personal PDS?


A GDG BASE can not be defined in a PDS.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Tue Jul 01, 2008 1:28 am
Reply with quote

Hello,

Quote:
Is there any way to copy an existing GDG base to personal PDS?
Do you mean you want to copy the information to define the gdg base into some member in your pds?

If you explain what you really want to accomplish, someone may have a suggestion?

As Craig mentoned, you cannot define a pds as a gdg.
Back to top
View user's profile Send private message
meenakshi_forum
Warnings : 1

Active User


Joined: 27 May 2008
Posts: 121
Location: India

PostPosted: Tue Jul 01, 2008 1:38 am
Reply with quote

Yes, i want to copy the information to define the GDG base into some member in my PDS.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Tue Jul 01, 2008 2:03 am
Reply with quote

Hello,

If you run an idcams/listcat you can get the info about the gdg base.

This LISTC ENT('YOUR.GDG.BASE') ALL will probably return more than you want.

Copy what you want into a member or just point the SYSPRINT DD to a member in your pds to get all of the info.
Back to top
View user's profile Send private message
meenakshi_forum
Warnings : 1

Active User


Joined: 27 May 2008
Posts: 121
Location: India

PostPosted: Tue Jul 01, 2008 2:27 am
Reply with quote

Thanks for the information.

Could you please give me the code?

I have an existing PDS and i need to see the contents of it and also i want to make a local(personal) copy of it .
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Tue Jul 01, 2008 6:45 am
Reply with quote

Hello,

Obviously, communicaton is not happening. . .

Quote:
Could you please give me the code?
The LISTC given is the code to list the definition of the gdg.

Quote:
I have an existing PDS and i need to see the contents of it and also i want to make a local(personal) copy of it
Earlier, you wanted to get the information about a gdg into a member of your pds. Now, it sounds like there is a pds and you want to see the contgents of it and make a copy of it.

If i understand both posts, they have nothing to do with each other.

I'm sure there is something you would like us to help with, but until you clearly (consisently) post whatr you want, only a lucky guess can provide an answer.

It may help if you talk to some senior on your project to help word your question.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Tue Jul 01, 2008 12:14 pm
Reply with quote

meenakshi_forum wrote:
Thanks for the information.
Could you please give me the code?

Do you not
a) Read the responses given
b) Have access to manuals
Back to top
View user's profile Send private message
UmeySan

Active Member


Joined: 22 Aug 2006
Posts: 771
Location: Germany

PostPosted: Tue Jul 01, 2008 9:44 pm
Reply with quote

@ meenakshi_forum:

If you want to store Alloc-Informations of a Dataset and not the
content in the Dataset:

Enter the LISTC command against this Dataset whose informations you want. Or just, if it's a normal PS, enter I for Information in TSO 3.4.

Now in CommandLine enter SAVE comand while you are looking at your desired output. Infos will be saved in background to Userid.SPF.LIST-DATASET ore something like this.

Logoff from TSO. You will be promted if you want to keep a LIST-DATASET. Enter Yes or 4 or what is specified. Then Logon to TSO again.

Look at that LIST-DATASET. There's your Information stored.
Back to top
View user's profile Send private message
meenakshi_forum
Warnings : 1

Active User


Joined: 27 May 2008
Posts: 121
Location: India

PostPosted: Thu Jul 03, 2008 3:23 am
Reply with quote

Thanks all for the suggestions.

I tried the option given by Umeysan but the O/P file generated is giving some other inforamtion.

My requirement comes like this--

I have to use a existing JCL and this JCL is pointing to a Proc where GDG is used; from my JCL(i have copied the existing into my PDS as i dont have authorization to run it from other's PDS); from the JCL we are overriding parameters to PROC but from my JCL which i have copied ,my overides for GDG are not working.

The existing GDG was created by some other person with her id.

I tried to copy GDG with Copy option but it fails saying GDG base.

Please suggest what can be done ?


I want to know how an existing GDG be copied and is there any way we can see the contents of existing GDG.

Thanks.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Jul 03, 2008 3:30 am
Reply with quote

Hello,

The major difficulty of this topic is comunication rather than technology. . .

Quote:
I want to know how an existing GDG be copied and is there any way we can see the contents of existing GDG.
You have not defined what you mean by "contents of existing gdg". I'm sure you know exactly what you mean, but your meaning has not been clear to the rest of us. If you want to look at the data in some generation of a gdg and the file is on dasd, you can browse the file in tso/ispf.

Code:
//GENR     EXEC PGM=IEBGENER                               
//SYSUT1   DD DSN=THE.OLD.GDG.DSN(0),DISP=OLD                             
//SYSUT2   DD DSN=SOME.NEW.DSN,DISP=(,CATLG,DELETE)                               
//SYSOUT   DD SYSOUT=*                               
//SYSPRINT DD SYSOUT=*                               
//SYSIN    DD DUMMY                                 
will copy the current generation of the gdg to a new file.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Thu Jul 03, 2008 11:20 am
Reply with quote

Hi,
Quote:
I tried to copy GDG with Copy option but it fails saying GDG base.

This message suggests that you tried to copy GDG-Base instead of GDG (version) itself.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu Jul 03, 2008 12:17 pm
Reply with quote

Quote:
This message suggests that you tried to copy GDG-Base instead of GDG (version) itself.

Anuj - Go stand in the corner ............. It's a generation not a version !
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Thu Jul 03, 2008 12:51 pm
Reply with quote

Sorry Expat Sir... icon_redface.gif

I've to obey You, Colleagues are laughing at me after watching me standing in corner.. icon_neutral.gif
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu Jul 03, 2008 1:19 pm
Reply with quote

Sorry chaps, picky moany mood today - icon_biggrin.gif

Quote:
As Craig mentoned, you cannot define a pds as a gdg.

Actually you can, but it is a real bummer to access as you can not use relative addressing to the GDG generation, so are restricted to using absolute generation addressing.
And just like they said on TV many years ago ..............
Here's one I prepared earlier
Code:

   Menu  Functions  Confirm  Utilities  Help     
 ..........................................................
 VIEW              xxxxx.TEST.PDS.GDG.G0001V00       
 Command ===>                                     
            Name     Prompt       Size   Created 
 _________ TEST01                    1  2008/07/03
 _________ TEST02                    1  2008/07/03
           **End**                               
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts VB to VB copy - Full length reached SYNCSORT 8
No new posts Need COBOL COPY Help in MVS Environment COBOL Programming 4
No new posts Issue after ISPF copy to Linklist Lib... TSO/ISPF 1
No new posts DB2 Table - Image copy unload IBM Tools 2
No new posts How to copy the -1 version of a membe... TSO/ISPF 4
Search our Forums:

Back to Top