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
 

 

What is the use of tape

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions
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    Post subject: What is the use of tape
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    Post subject: Re: interview q
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    Post subject: Re: What is the use of tape
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: 287
Location: Basel, Switzerland

PostPosted: Tue Mar 14, 2006 5:06 pm    Post subject:
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: 1452
Location: Chicago, IL

PostPosted: Tue Mar 14, 2006 5:19 pm    Post subject: Re: What is the use of tape
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: 287
Location: Basel, Switzerland

PostPosted: Tue Mar 14, 2006 8:51 pm    Post subject:
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    Post subject: Re: What is the use of tape
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    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts TAPE VERIFY utility?? MrExtraordinare JCL & VSAM 3 Fri Dec 09, 2016 10:57 pm
No new posts stacking files on a tape Pedro JCL & VSAM 7 Wed Aug 17, 2016 11:11 pm
No new posts Reading selected volumes of a multi-v... RickBig JCL & VSAM 6 Wed Jul 13, 2016 7:26 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 TABLE vs TAPE pshongal DB2 3 Tue Mar 08, 2016 1:02 pm


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