Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
How can i create a GDG on tape

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
autobox

New User


Joined: 19 Aug 2005
Posts: 48

PostPosted: Thu Jul 20, 2006 8:03 am    Post subject: How can i create a GDG on tape
Reply with quote

Dear all:

I want to backup files on tape using GDG, but how can i create a GDG on tape?
I mean that, if we create a GDG, the two parts (the GDG and it's entry(namely MODEL)) of it must reside on the same volume so that the catalog can find the entry of the GDG, as for a tape, how can i define the GDG and it's MODEL in the catalog of the tape?

Thanks a lot!
Back to top
View user's profile Send private message

Hanfur

Active User


Joined: 21 Jun 2006
Posts: 104

PostPosted: Thu Jul 20, 2006 12:01 pm    Post subject: Hi
Reply with quote

Auto,

Use IDCAMS for this as given below..

//STEP01 EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//MODEL DD DSNAME=XXXPROD.GDGMODEL,
// DISP=(NEW,KEEP),
// SPACE=(TRK,0),
// DCB=(DSORG=PS,RECFM=U)
//SYSIN DD *
DEFINE GDG ( NAME (AETPROD.TAPE.BJCVVSB) -
LIMIT(7) -
NOEMPTY -
SCRATCH )
/*

Use utlitlites like ADRDSSU as given below for back up.The following JCl would put all my VSAM files in to a single version of GDG in Tape.

//STEP02 EXEC PGM=ADRDSSU
//COPYOUT DD DSN=XXX&ENV..TAPE.PRODMM(+1),
// UNIT=AUTO1,VOL=(,,,99),
// DISP=(,CATLG,DELETE),LIKE=AET&ENV..GDGMODEL,RECFM=U,

//SYSIN DD DSN=AET&ENV..DY722.CONTROL(ACVPRDB),
// DISP=SHR
----+----1----+----2----+----3----+----4----+----5----+----6----+--
DUMP DS(INCLUDE( -
XXXPROD.ACV.ACNT.FILE -
XXXPROD.ACV.ACCT.SUM.FILE -
XXXPROD.ACV.AUX.HIST.FILE -
XXXPROD.ACV.B
/*


you may have to tailor it accoding to your need...

-Han.
Back to top
View user's profile Send private message
autobox

New User


Joined: 19 Aug 2005
Posts: 48

PostPosted: Thu Jul 20, 2006 3:28 pm    Post subject:
Reply with quote

Hi,

I tried to create a new generation of GDG on tape, but got the following error message: "IEF217I IBMUSERA SETP1 SYSUT2 - VOLUME CONTAINING PATTERN DSCB NOT MOUNTED".
I used the "DCB=(MODEL_NAME)" to specify the model data set, but it seems like that the system can not find the mode data set.
How to find the model data set?

Thanks a lot!
Back to top
View user's profile Send private message
sasman

New User


Joined: 18 Jul 2006
Posts: 5

PostPosted: Fri Jul 21, 2006 1:00 am    Post subject: Re: How can i create a GDG on tape
Reply with quote

If you define the gdg using something like this example then the modelgdg will be found automatically:

//STEP1 EXEC PGM=IDCAMS,TIME=5
//SYSPRINT DD SYSOUT=*
//DSCB1 DD DSN=xxxxxxxx,DISP=SHR <= xxxxxxxx is first node
//DD1 DD DSN=xxxxxxxx.rest.of.name,DISP=(,KEEP),
// UNIT=3390,VOL=REF=*.DSCB1,
// SPACE=(TRK,0)
//SYSOUT DD SYSOUT=*
//SYSIN DD *
DEFINE GDG (NAME(xxxxxxxx.rest.of.name) -
LIMIT(2) SCRATCH NOEMPTY)

This example puts the modelgdg on the DASD volume where the catalog that the gdg is being defined to is located. It is nothing more than a dscb entry on the DASD volume. Then you don't need to use a DSCB=MODELGDG statement in the JCL that you use to create the tape output. Maybe something like this:

//TAPE0 DD DISP=(,CATLG,DELETE),
// UNIT=TAPE,LABEL=(1,SL),
// DCB=(LRECL=xx,RECFM=yy,BLKSIZE=0),
// DSN=xxxxxxxx.rest.of.name(+1)


Just make sure you have the VTOC on the DASD volume large enough for the DSCB entries for all of the GDGs defined.
Back to top
View user's profile Send private message
Hanfur

Active User


Joined: 21 Jun 2006
Posts: 104

PostPosted: Fri Jul 21, 2006 11:42 am    Post subject: Hi
Reply with quote

Auto,
If your shop have a model use that while creating a GDG versions on Tape.Otherwsie create a model as mentioned by sasman and refer it in while creating GDG versions on Tape.

-Han.
Back to top
View user's profile Send private message
autobox

New User


Joined: 19 Aug 2005
Posts: 48

PostPosted: Fri Jul 21, 2006 3:03 pm    Post subject:
Reply with quote

Thank you all for your great help!

But I still wonder:
1. A GDG must has it's MODEL?
2. If the answer of question 2 is yes, a GDG new generation and it's MODEL must reside on the same volume or catalog?
3. What on earth is the difference between GDG on DASD and GDG on TAPE to define the GDG and it's MODEL?

Thanks!
Back to top
View user's profile Send private message
autobox

New User


Joined: 19 Aug 2005
Posts: 48

PostPosted: Fri Jul 21, 2006 3:06 pm    Post subject:
Reply with quote

[quote="autobox"]
2. If the answer of question 2 is yes, a GDG new generation and it's MODEL must reside on the same volume or catalog?
quote]
2. If the answer of question 1 is yes, a GDG new generation and it's MODEL must reside on the same volume or catalog?
Back to top
View user's profile Send private message
sasman

New User


Joined: 18 Jul 2006
Posts: 5

PostPosted: Fri Jul 21, 2006 5:52 pm    Post subject: Re: How can i create a GDG on tape
Reply with quote

A gdg must have a model. The model does not have to reside on the same volume as the Catalog, but it must have a model. If the model does not reside on the same volume as the catalog where the GDG is defined, you MUST specify in your JCL something like this
DCB=(gdgmodel,other dcb info) where gdgmodel points to a catalogued dataset used for a gdg model.


The GDG dataset (not the same thing as the GDG definition in the catalog or the model dscb) can reside anywhere you decide to put it such as on DASD or TAPE and you specify that in your UNIT=xxxxx parameter.
Back to top
View user's profile Send private message
sasman

New User


Joined: 18 Jul 2006
Posts: 5

PostPosted: Fri Jul 21, 2006 8:28 pm    Post subject: Re: How can i create a GDG on tape
Reply with quote

One thing that may be causing some problem in your understanding is that the generation of the GDG that you are creating is nothing more than a regular dataset that is defined to the catalog in such a way that you can group the datasets (all the different generations) together for management purposes. The GDG definition is just that, a definition of a way to group datasets using generations.
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 How to create issuer certificate? :'( vasanthz All Other Mainframe Topics 1 Sat Nov 18, 2017 5:14 am
No new posts Create procedure issues -628 when add... chandraBE DB2 1 Mon Sep 18, 2017 12:16 pm
No new posts How do I create a mainframe monitorin... anjali.bisht All Other Mainframe Topics 4 Fri Sep 01, 2017 2:20 pm
This topic is locked: you cannot edit posts or make replies. rexx to create a tso command Bharath Vikraman CLIST & REXX 1 Tue Aug 08, 2017 3:32 pm
This topic is locked: you cannot edit posts or make replies. rexx code to create a ps file Bharath Vikraman CLIST & REXX 4 Mon Aug 07, 2017 10:30 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us