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

Copy from Tap eto DASD


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
monasu1998

Active User


Joined: 23 Dec 2005
Posts: 176
Location: India

PostPosted: Mon Mar 06, 2006 10:04 am
Reply with quote

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

New User


Joined: 09 Aug 2005
Posts: 67

PostPosted: Mon Mar 06, 2006 10:26 am
Reply with quote

use JCL sort with sort fields=copy, and code referback for DCB parameters(DCB=*.SORTIN).
Back to top
View user's profile Send private message
Rupesh.Kothari

Member of the Month


Joined: 27 Apr 2005
Posts: 463

PostPosted: Mon Mar 06, 2006 12:01 pm
Reply with quote

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

Active User


Joined: 23 Dec 2005
Posts: 176
Location: India

PostPosted: Mon Mar 06, 2006 12:14 pm
Reply with quote

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

Member of the Month


Joined: 27 Apr 2005
Posts: 463

PostPosted: Mon Mar 06, 2006 12:42 pm
Reply with quote

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

New User


Joined: 17 Feb 2006
Posts: 9
Location: chennai

PostPosted: Tue Apr 11, 2006 3:45 pm
Reply with quote

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

New User


Joined: 17 Feb 2006
Posts: 9
Location: chennai

PostPosted: Tue Apr 11, 2006 3:49 pm
Reply with quote

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

New User


Joined: 27 May 2005
Posts: 21

PostPosted: Tue Apr 11, 2006 4:37 pm
Reply with quote

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

New User


Joined: 06 Jul 2005
Posts: 21
Location: chennai

PostPosted: Tue Apr 11, 2006 4:49 pm
Reply with quote

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

New User


Joined: 27 Mar 2006
Posts: 3

PostPosted: Tue Apr 11, 2006 6:52 pm
Reply with quote

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
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts VB to VB copy - Full length reached SYNCSORT 8
No new posts Need COBOL COPY Help in MVS Environment COBOL Programming 4
No new posts Issue after ISPF copy to Linklist Lib... TSO/ISPF 1
No new posts DB2 Table - Image copy unload IBM Tools 2
No new posts How to copy the -1 version of a membe... TSO/ISPF 4
Search our Forums:

Back to Top