View previous topic :: View next topic
|
Author |
Message |
Viji viswanatham
New User
Joined: 02 Apr 2012 Posts: 4 Location: India
|
|
|
|
Hi,
Could any1 provide more details on the following:
How can I create a GDG Version using unit= tape,
That is when I try to open the GDG version, I should see 'tape can not be supported' message.
When I triedto create GDG version using unit=type, the JOB ended with MAxcc=0, But the file didnt get created,I didnt see any file.
Please let me know what are the options I should use to create a GDG Version on tape..
Thanks,
Viji |
|
Back to top |
|
|
Bill O'Boyle
CICS Moderator
Joined: 14 Jan 2008 Posts: 2501 Location: Atlanta, Georgia, USA
|
|
|
|
Instead of TAPE, try CART (for Cartridge). TAPE and REEL are one in the same and I'd be surprised if your shop is using the old 3420 TAPE drives.
I won't get into the subject question as this is rudimentary, even for a Fresher. |
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2546 Location: Silicon Valley
|
|
|
|
Quote: |
TAPE and REEL are one in the same and I'd be surprised if your shop is using the old 3420 TAPE drives. |
Actually, I think it is site dependent. It is an esoteric name: its definition can be changed for modern devices. I am not even sure it has to refer to a tape-like device. For example, you may want to change the definition of TAPE, rather than have to edit numerous JCL members. |
|
Back to top |
|
|
Bill O'Boyle
CICS Moderator
Joined: 14 Jan 2008 Posts: 2501 Location: Atlanta, Georgia, USA
|
|
|
|
Pedro,
Yes, I believe you're right. TAPE and CART are synonymous, but REEL represents an actual DEN=x, Mylar Tape (IE: 3420 drive).
Hokey Smoke Bullwinkle, move the cobwebs out of the way.... |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
"Tape cannot be supported" ....... are you doing this from a TSO session ?
Also, you need to learn the difference between GDS version and GDS generation |
|
Back to top |
|
|
Viji viswanatham
New User
Joined: 02 Apr 2012 Posts: 4 Location: India
|
|
|
|
expat wrote: |
"Tape cannot be supported" ....... are you doing this from a TSO session ?
Also, you need to learn the difference between GDS version and GDS generation |
hi,
I mean to say when I tried to open a file I should see something like 'Tape not supported'
Yes! I am trying to create GDGD versions from a TSO Session (SMR environment)
Thanks! |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Well 99.99% of installations do not allow tape processing from a foreground TSO session. |
|
Back to top |
|
|
Viji viswanatham
New User
Joined: 02 Apr 2012 Posts: 4 Location: India
|
|
|
|
expat wrote: |
Well 99.99% of installations do not allow tape processing from a foreground TSO session. |
hmmm...then what could be the solution for this??
Any sample JCLs which i can refer to for ctrsting GDG Versions on Tape??
Thanks in advance! |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello and welcome to the forum,
Quote: |
I am trying to create GDGD versions from a TSO Session (SMR environment) |
I suspect this is NOT true. . . I suspect you are trying to create generations. Before proceeding any further, you need to understand the difference between generation and version.
Have you defined the generation data group? If not, this must be done before cataloging file entries (generations).
The way to create new generations is to write the output dataset as a dsn(+1) in your jcl.
As mentioned, you should not try to use tape/cart from a tso session. |
|
Back to top |
|
|
Akatsukami
Global Moderator
Joined: 03 Oct 2009 Posts: 1788 Location: Bloomington, IL
|
|
|
|
Viji viswanatham wrote: |
Any sample JCLs which i can refer to for ctrsting GDG Versions on Tape?? |
How about:
Code: |
//SHGBICE JOB ,'ICE ICE BABY',CLASS=S,MSGCLASS=1,REGION=0K
//*
//STEPONLY EXEC PGM=IEBGENER
//SYSPRINT DD SYSOUT=*
//SYSUT1 DD DUMMY
//SYSUT2 DD DSN=C02596.SHGB.DB.R01.A574(+1),DISP=(NEW,CATLG),
// DCB=(RECFM=FB,LRECL=80,BLKSIZE=32720),UNIT=TAPE
//SYSIN DD DUMMY |
|
|
Back to top |
|
|
Viji viswanatham
New User
Joined: 02 Apr 2012 Posts: 4 Location: India
|
|
|
|
I have one more doubt.
Can we use the same JCL (Ashown below) to create a GDG base on a Disk or a tape??
Please provide your inputs.
i was using the following JCLs for the creation of GDG base and Generations.
***************************** Top of Data ******************************
//VXT10001 JOB (SRCH),'SRCH DATASETS',CLASS=2,
// NOTIFY=&SYSUID,MSGCLASS=Q
//*
//**************************************************
//JS01 EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SYSIN DD *
DEFINE GDG(NAME(GDGCAT.D.FE7110ZA) -
LIMIT(4) -
NOEMPTY -
SCRATCH)
//*
//
**************************** Bottom of Data ****************************
and Gor Generation is was using the following:
***** ***************************** Top of Data ******************************
//VXT10001 JOB (SRCH),'SRCHDATASETS',CLASS=2,
// NOTIFY=&SYSUID,MSGCLASS=Q
//*
//**************************************************
//JS01 EXEC PGM=IEFBR14
//DD1 DD DSN=GDGCAT.FE41508W(+1),
// DISP=(NEW,CATLG,DELETE),
// UNIT=TAPC,
// SPACE=(TRK,(18433,6200),RLSE),
// DCB=(GDGCAT.MODEL)
//*
//
****** ****************************
Akatsukami wrote: |
Viji viswanatham wrote: |
Any sample JCLs which i can refer to for ctrsting GDG Versions on Tape?? |
How about:
Code: |
//SHGBICE JOB ,'ICE ICE BABY',CLASS=S,MSGCLASS=1,REGION=0K
//*
//STEPONLY EXEC PGM=IEBGENER
//SYSPRINT DD SYSOUT=*
//SYSUT1 DD DUMMY
//SYSUT2 DD DSN=C02596.SHGB.DB.R01.A574(+1),DISP=(NEW,CATLG),
// DCB=(RECFM=FB,LRECL=80,BLKSIZE=32720),UNIT=TAPE
//SYSIN DD DUMMY |
|
|
|
Back to top |
|
|
vasanthz
Global Moderator
Joined: 28 Aug 2007 Posts: 1742 Location: Tirupur, India
|
|
|
|
Quote: |
Can we use the same JCL (Ashown below) to create a GDG base on a Disk or a tape??
|
No
I think GDG bases are stored in catalog and cannot be stored in tape.(I am open to correction)
You need to use IDCAMS DEFINE for creating GDG base. |
|
Back to top |
|
|
Akatsukami
Global Moderator
Joined: 03 Oct 2009 Posts: 1788 Location: Bloomington, IL
|
|
|
|
Viji viswanatham wrote: |
I have one more doubt.
Can we use the same JCL (Ashown below) to create a GDG base on a Disk or a tape??
Please provide your inputs. |
You cannot create a GDG base on a tape. OTOH, note that the location has nothing to do with the location of the generation data sets themselves; they may be on different devices types, and need not even have the same DCB parameters (although I strongly recommend that you avoid doing this). OTGH, the IDCAMS control cards create a GDG base with a different name than the GDS that your IEFBR14 then tries to create. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
Quote: |
Can we use the same JCL (Ashown below) to create a GDG base on a Disk or a tape?? |
Categorically not. As Vasanth indicated, the GDG base definition is stored in the CATALOG, and hence you cannot define a GDG base on tape. You can define GDG generations on tape all day long -- but not a base.
You need to spend some hours in the manual so you understand
GDG base
GDG generation
GDG version
Relative generation reference
Absolute generation reference
because terminology is critical in IT, where similar terms may mean very different things. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Suggest you completely discard your jcl that uses IEFBR14 to catalog a new generation. It has multiple problems.
Suggest you use jcl like the sample Akatsukami provided.
As mentioned, you need to spend the time to learn how GDGs are defined and used. |
|
Back to top |
|
|
Pete Wilson
Active Member
Joined: 31 Dec 2009 Posts: 580 Location: London
|
|
|
|
Also be aware of the difference NONSMS or SMS managed GDG's.
With SMS managed GDG's there were concepts of DEFERRED, ROLLED-IN and ROLLED-OFF status introduced, mainly because SMS managed datasets cannot be uncataloged. The way these status are set is important to understand.
Normally if you create a new GDS as (+1) and the creating jobstep completes RC=00 then the GDS will be 'rolled-in' and be associated with the GDG base. You could then refer to it as the (0) generation. But, if the jobstep fails, and your DISP does not specifiy abnormal termination disposition of DELETE the GDS will remain there in 'deferred' status and will not be associated with the GDG base, so has to be referenced by it's absolute generation number (i.e. with the full .GnnnnV00 suffix). However if the same jobstep is rerun to create (+1) again it will actually try and re-use the deferred generation |
|
Back to top |
|
|
|