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

What is the use of tape


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
spriya

New User


Joined: 06 Oct 2005
Posts: 42

PostPosted: Sun Mar 12, 2006 12:06 pm
Reply with quote

hi friends
i need the answers for following questions.(try to give elobrately )
thanx in advance


1)what is the necessry to convert the tape files to disk files?(for example
i had a gdg file in tape i want 2 convert into dasd means what r the steps i have 2 do)(i knw the way of using by mentioning device type=sysda)

2)wat is the use of tape?for what purpose v r using?

3)while converting tape files to dasd how v knw the record length of tape file?

4)while converting tape files to dasd wat r errors frequently comes?

5)In step 1 i have one gdg version(for example xxxx.yyyy.G0003001(+1))iin step5 i need the same gdg of first step tat is step1)what is the gdg version in step5?
Back to top
View user's profile Send private message
nandakumar
Warnings : 2

New User


Joined: 05 May 2005
Posts: 50

PostPosted: Sun Mar 12, 2006 1:17 pm
Reply with quote

Hi,


1) 'what is the necessry to convert the tape files to disk files'

Ans: if the file is tape file means u can't see the content of the file
that is u cannot edit or browse or view the tape dataset.
so u need to copy the content of tape data set to disk.


2) 'i want 2 convert into dasd means what r the steps i have 2 do '


Ans: To convert tape dataset to disk, just copy the tape file to disk using sort
utility.


Example:

//step05 exec pgm=BCDELETE
//step010 exec pgm=sort
//sortin dd dsn= myfile.spriya.tape1,disp=shr
//sortoUT dd dsn=myfile.spriya.disk1,disp=(NEW,CATLG,DELETE),
// space=(cyl,(10,10),rlse),
// dcb=(lrecl=80,recfm=fb)
//sysprint dd sysout=*
//sysout dd sysout=*
//sysin dd *
sort fields=copy
/*



3) 'wat is the use of tape?for what purpose v r using'

Ans: If we want to store huge data & it is to be retained for over long
period,it is better go with tape dataset.bcoz tape file can handle large
amout of data .If u add some more records after some time
means space problem will not occur.But in in disk file space
problem may occur depending the space allocated & size of
the data, so every time u will need to increase the space
parameter while adding new reocords to the same file in feature .

4)'In step 1 i have one gdg version(for example xxxx.yyyy.G0003001(+1))iin step5
i need the same gdg of first step tat is step1)what is the gdg version in step5? '


Ans: xxxx.yyyy.G0003001(+1)

5) 'while converting tape files to dasd how v knw the record length of tape file'
Ans:While converting tape dataset to disk dataset using sort utility,
if u did not specifythe logical record length for disk data set .By default
it will take "LRECL" of disk dataset.Otherwise go to ispf 3.4 option ,
put 'I' before name of the tape dataset & press enter.it will
show the attributes of the tape file such as record length,block size
etc


********** Let me know if any thing is wrong **************

Thanks,
Nandakumar
Back to top
View user's profile Send private message
spriya

New User


Joined: 06 Oct 2005
Posts: 42

PostPosted: Tue Mar 14, 2006 4:19 pm
Reply with quote

Hi nandakumar,


Thanks a lot for ur nice answers. i have doubt in 4 question

4)'In step 1 i have one gdg version(for example xxxx.yyyy.G0003001(+1))iin step5
i need the same gdg of first step tat is step1)what is the gdg version in step5? '


Ans: xxxx.yyyy.G0003001(+1)

if i give (+1) in step5 means it may b doubled.it is possible can i refer (0) means it will take step1 r wat it will do
Back to top
View user's profile Send private message
martin9

Active User


Joined: 01 Mar 2006
Posts: 290
Location: Basel, Switzerland

PostPosted: Tue Mar 14, 2006 5:06 pm
Reply with quote

hy spyria,

you can copy a tape file with IEBGENER,
you just need to know the cuurent record size
on that tape. therefore go to the RMM in online
and refer to that tape, there you will find the
correct measures of the tape dataset.

for the second...
you are right you cannot do this, if you want to be
on the same dataset for sure. therefore you can
code a referback on the dd where you created the
gdg(+1) dataset --> DD VOL=REF=*.ddname

martin9
Back to top
View user's profile Send private message
priyesh.agrawal

Senior Member


Joined: 28 Mar 2005
Posts: 1448
Location: Chicago, IL

PostPosted: Tue Mar 14, 2006 5:19 pm
Reply with quote

Quote:
5)In step 1 i have one gdg version(for example xxxx.yyyy.G0003001(+1))iin step5 i need the same gdg of first step tat is step1)what is the gdg version in step5?

Your question is not complete itself, though I felt you want to know...
That a GDG generation is being created at STEP1 as (+1) and you want to refer this created generation in STEP5.

If this is the case, you will need to give (+1) in STEP5 as well to refer the generation created in STEP1, provided it is not being DELETED between STEP1 & STEP5.

Code:
STEP1      EXEC PGM=....
DD1         DSN=HLQ.ACCNAME.INPUT,DISP=SHR
DD2          DSN=HLQ.ACCNAME.GDG (+1),DISP=(,CATLG,DELETE)
::
::
STEP5     EXEC PGM=.....
DD1          DSN=HLQ.ACCNAME.GDG (+1),DISP=SHR
DD2...........................


Regards,
Priyesh.
Back to top
View user's profile Send private message
martin9

Active User


Joined: 01 Mar 2006
Posts: 290
Location: Basel, Switzerland

PostPosted: Tue Mar 14, 2006 8:51 pm
Reply with quote

hy spriya,

just think,

a tape is very cheap and you can put there as much as you have tapes left. disk space on dasd is very expensive on the other hand!
use a tape for example as a backup medium, or a database unload,
which has usually a lot of data...
note: it is always a sequential medium!

martin9
Back to top
View user's profile Send private message
spriya

New User


Joined: 06 Oct 2005
Posts: 42

PostPosted: Wed Mar 15, 2006 1:49 pm
Reply with quote

hai martin

can u explain me RMM in online

to find the record size in tape
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 -> Mainframe Interview Questions

 


Similar Topics
Topic Forum Replies
No new posts Deleting a Tape file JCL & VSAM 14
No new posts JCL and TAPE drives: how to maximize ... JCL & VSAM 9
No new posts ADR324E-VOL/DATASET SPECIFIED BY DDNA... JCL & VSAM 6
No new posts Record count of RECFM=U tape file DFSORT/ICETOOL 17
No new posts Using Virtual Tape Server TS7700 as c... All Other Mainframe Topics 0
Search our Forums:

Back to Top