View previous topic :: View next topic
|
Author |
Message |
monasu1998
Active User
Joined: 23 Dec 2005 Posts: 176 Location: India
|
|
|
|
Hi All:
I have a Tape dataset. That is a GDG generation.
I am not able to browse the data inside it as it is on tape.
Can anyone please help me providing the JCL skeleton to copy the tape dataset to DASD so that I can see the content of it?
Thanks in advance
I know it is a silly question still I posted it anticipating a better solution |
|
Back to top |
|
|
bonniem
New User
Joined: 09 Aug 2005 Posts: 67
|
|
|
|
use JCL sort with sort fields=copy, and code referback for DCB parameters(DCB=*.SORTIN). |
|
Back to top |
|
|
Rupesh.Kothari
Member of the Month
Joined: 27 Apr 2005 Posts: 463
|
|
|
|
HI,
Quote: |
I have a Tape dataset. That is a GDG generation.
I am not able to browse the data inside it as it is on tape.
Can anyone please help me providing the JCL skeleton to copy the tape dataset to DASD so that I can see the content of it? |
Did u try HRECALL command in option 3.4 infront of GDG which you want to browse?
Hope this helps
Regards
Rupesh |
|
Back to top |
|
|
monasu1998
Active User
Joined: 23 Dec 2005 Posts: 176 Location: India
|
|
|
|
Hi Rupesh:
thank you for your response and suggestion.
Let me elaborate my problem, so that you can help me out.
Fortnightly I get I get few files, all are GDG files. SO each time I get a new generation. now the generation is "G0057V00"
Last time also I had got same file with "G0056V00"
I want to compare the contents of the 2 generations.
I doubt that this time I got less data, because of which I get less counts.
The files are on tape.
I have tried he following things
%HRECALL in front of the dataset.
HRE CALL
Opening the dataset(G0057V00) in 3.4 option and giving command
COMP "G0056V00".
Tried the 3.12 option where it says that dataset not found
But that is opening in 3.4 option.
Now can you suggest me how can I copy the GDG file to a DASD using JCL? |
|
Back to top |
|
|
Rupesh.Kothari
Member of the Month
Joined: 27 Apr 2005 Posts: 463
|
|
|
|
HI Monasu1998.
As you are able to see the filename in option 3.4 but can not compare, may be your file copied on to tape. You can restore that file using following JCL
Code: |
//RESTOR1 EXEC PGM=ADRDSSU
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//BACKUP DD DSN=G0057V00,
// DISP=OLD
//SYSIN DD *
RESTORE DATASET( -
INCL(G0057V00)) -
INDDNAME(BACKUP) -
RENAMEU((G0057V00,G0057V00.NEW)) CAT |
and after that compare fiel with option 3.12.
Hope this helps
Regards
Rupesh |
|
Back to top |
|
|
Murali krishna
New User
Joined: 17 Feb 2006 Posts: 9 Location: chennai
|
|
|
|
you can directly copy the tape dataset into local ps using IEBCOPY but you need to specify the DISP=OLD for sysut1(i.e tape dataset) and DCB of DASD PS should be DCB=(*.SYSUT1) .By this way you can copy the tape file into PS. |
|
Back to top |
|
|
Murali krishna
New User
Joined: 17 Feb 2006 Posts: 9 Location: chennai
|
|
|
|
sorry i mentioned PGM=IEBCOPY in my last post but it shud be PGM=IEBGENER as IEBCOPY will not copy the PS files |
|
Back to top |
|
|
yogesh
New User
Joined: 27 May 2005 Posts: 21
|
|
|
|
Hi
U can use following JCL for Coping from The Tape to DASD
**********************
//DD1 DD DSN='TEST.MICW004W.NFB.KEEP.G0469V00',DISP=SHR
//DD2 DD DSN=TEST.MICW.MICW004W.NFB.KEEP,
// DISP=(,CATLG,DELETE),
// UNIT=SYSDA,
// SPACE=(TRK,(50,50),RLSE),
// DCB=(RECFM=FB,LRECL=99,BLKSIZE=990)
//SYSIN DD *
REPRO -
INFILE(DD1) -
OUTFILE(DD2)
/*
//
********************** |
|
Back to top |
|
|
kousalya26
New User
Joined: 06 Jul 2005 Posts: 21 Location: chennai
|
|
|
|
Hi monasu1998,
What i assume is that you want to compare two GDG version datasets which reside on tape. If that is so, you can directly compare the two datasets which are on tape using File-Aid without unloading and copying it to DASD files. Well if you want to browse the contents of the file also, you can unload the tape files using IEBGENER or IDCAMS or SORT.
Corrections Welcome !
Thanks & Regards,
kousalya |
|
Back to top |
|
|
kmanjunath Currently Banned New User
Joined: 27 Mar 2006 Posts: 3
|
|
|
|
I have worked with this problem.. I have a Tape Dataset and i need that dataset to copy into a PS.. For this we can use SORT utility.. In sortin we can give the Tape dataset and unit = tape, volume = (tape's volume) and
in Sortout you can give your PS... And Sort fields = copy... thats it.. Your data's in Tape will be copied to your PS.. |
|
Back to top |
|
|
|