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
 

 

Difference between DASD Files and TAPE files

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

New User


Joined: 02 Apr 2012
Posts: 4
Location: India

PostPosted: Tue Apr 03, 2012 12:56 am    Post subject: Difference between DASD Files and TAPE files
Reply with quote

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
View user's profile Send private message

Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2502
Location: Atlanta, Georgia, USA

PostPosted: Tue Apr 03, 2012 1:42 am    Post subject: Reply to: Difference between DASD Files and TAPE files
Reply with quote

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
View user's profile Send private message
Pedro

Senior Member


Joined: 01 Sep 2006
Posts: 2019
Location: Silicon Valley

PostPosted: Tue Apr 03, 2012 2:35 am    Post subject: Reply to: Difference between DASD Files and TAPE files
Reply with quote

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
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2502
Location: Atlanta, Georgia, USA

PostPosted: Tue Apr 03, 2012 2:46 am    Post subject: Reply to: Difference between DASD Files and TAPE files
Reply with quote

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.... icon_eek.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: Tue Apr 03, 2012 11:50 am    Post subject:
Reply with quote

"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
View user's profile Send private message
Viji viswanatham

New User


Joined: 02 Apr 2012
Posts: 4
Location: India

PostPosted: Tue Apr 03, 2012 12:52 pm    Post subject:
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Tue Apr 03, 2012 1:39 pm    Post subject:
Reply with quote

Well 99.99% of installations do not allow tape processing from a foreground TSO session.
Back to top
View user's profile Send private message
Viji viswanatham

New User


Joined: 02 Apr 2012
Posts: 4
Location: India

PostPosted: Tue Apr 03, 2012 2:29 pm    Post subject:
Reply with quote

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
View user's profile Send private message
dick scherrer

Site Director


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

PostPosted: Tue Apr 03, 2012 10:01 pm    Post subject:
Reply with quote

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
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1738
Location: Bloomington, IL

PostPosted: Tue Apr 03, 2012 11:09 pm    Post subject:
Reply with quote

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
View user's profile Send private message
Viji viswanatham

New User


Joined: 02 Apr 2012
Posts: 4
Location: India

PostPosted: Wed Apr 04, 2012 1:08 am    Post subject: Hi, Thank you for the Sample JCL.
Reply with quote

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
View user's profile Send private message
vasanthz

Global Moderator


Joined: 28 Aug 2007
Posts: 1445
Location: Azeroth

PostPosted: Wed Apr 04, 2012 1:14 am    Post subject:
Reply with quote

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
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1738
Location: Bloomington, IL

PostPosted: Wed Apr 04, 2012 1:25 am    Post subject: Re: Hi, Thank you for the Sample JCL.
Reply with quote

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
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7913
Location: Bellevue, IA

PostPosted: Wed Apr 04, 2012 1:26 am    Post subject:
Reply with quote

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
View user's profile Send private message
dick scherrer

Site Director


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

PostPosted: Wed Apr 04, 2012 8:32 pm    Post subject:
Reply with quote

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
View user's profile Send private message
Pete Wilson

Active User


Joined: 31 Dec 2009
Posts: 437
Location: London

PostPosted: Thu May 03, 2012 6:39 pm    Post subject:
Reply with quote

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
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 High CPU consumption Job using IAM fi... aswinir JCL & VSAM 8 Thu Dec 01, 2016 8:28 pm
No new posts Match or compare two files in VB Format anatol DFSORT/ICETOOL 14 Thu Nov 03, 2016 7:41 pm
No new posts Sticky: difference between ... DUMMY ... and ... enrico-sorichetti JCL & VSAM 0 Mon Oct 17, 2016 4:31 pm
This topic is locked: you cannot edit posts or make replies. How to use 2 input files in control c... Gunapala CN DFSORT/ICETOOL 23 Thu Oct 13, 2016 3:42 pm
No new posts Adding records from two files into on... shiitiizz SYNCSORT 4 Mon Sep 19, 2016 8:41 pm


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