View previous topic :: View next topic
|
Author |
Message |
spriya
New User
Joined: 06 Oct 2005 Posts: 42
|
|
|
|
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 |
|
|
nandakumar Warnings : 2 New User
Joined: 05 May 2005 Posts: 50
|
|
|
|
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 |
|
|
spriya
New User
Joined: 06 Oct 2005 Posts: 42
|
|
|
|
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 |
|
|
martin9
Active User
Joined: 01 Mar 2006 Posts: 290 Location: Basel, Switzerland
|
|
|
|
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 |
|
|
priyesh.agrawal
Senior Member
Joined: 28 Mar 2005 Posts: 1448 Location: Chicago, IL
|
|
|
|
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 |
|
|
martin9
Active User
Joined: 01 Mar 2006 Posts: 290 Location: Basel, Switzerland
|
|
|
|
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 |
|
|
spriya
New User
Joined: 06 Oct 2005 Posts: 42
|
|
|
|
hai martin
can u explain me RMM in online
to find the record size in tape |
|
Back to top |
|
|
|