Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

To copy a GDG

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: To copy a GDG
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    Post subject: Re: To copy a GDG
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

Site Director


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

PostPosted: Tue Jul 01, 2008 1:28 am    Post subject:
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    Post subject:
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

Site Director


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

PostPosted: Tue Jul 01, 2008 2:03 am    Post subject:
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    Post subject: Reply to: To copy a GDG
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

Site Director


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

PostPosted: Tue Jul 01, 2008 6:45 am    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Tue Jul 01, 2008 12:14 pm    Post subject: Re: Reply to: To copy a GDG
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: 743
Location: Germany

PostPosted: Tue Jul 01, 2008 9:44 pm    Post subject:
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    Post subject: Reply to: To copy a GDG
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

Site Director


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

PostPosted: Thu Jul 03, 2008 3:30 am    Post subject:
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

Senior Member


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

PostPosted: Thu Jul 03, 2008 11:20 am    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Thu Jul 03, 2008 12:17 pm    Post subject:
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

Senior Member


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

PostPosted: Thu Jul 03, 2008 12:51 pm    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Thu Jul 03, 2008 1:19 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts syncsort: copy lines after the keyword shreya19 SYNCSORT 3 Fri Dec 02, 2016 9:47 am
No new posts Single COPY CICS TS datasets and when... Kyle Carroll CICS 2 Tue Oct 11, 2016 9:47 pm
No new posts dataset copy question - REPRO or some... atulxp TSO/ISPF 2 Wed Aug 03, 2016 10:56 pm
No new posts How to copy Tape dataset to unix main... chaky All Other Mainframe Topics 4 Fri Jul 08, 2016 2:52 am
No new posts Using Field names in FILEAID Batch CO... Atul Banke Compuware & Other Tools 2 Wed Jun 29, 2016 9:54 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us