Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Copy from Tap eto DASD

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Copy from Tap eto DASD
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    Post subject:
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: 464

PostPosted: Mon Mar 06, 2006 12:01 pm    Post subject: Re: Copy from Tap eto DASD
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    Post subject: Re: Copy from Tap eto DASD
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: 464

PostPosted: Mon Mar 06, 2006 12:42 pm    Post subject: Re: Copy from Tap eto DASD
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    Post subject: Re: Copy from Tap eto DASD
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    Post subject: Re: Copy from Tap eto DASD
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    Post subject:
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    Post subject: Re: Copy from Tap eto DASD
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    Post subject: Hi
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Compare and COPY using DFSORT pshongal DFSORT/ICETOOL 3 Fri Nov 17, 2017 9:49 am
No new posts Copy selected columns from 2 input fi... Poha Eater DFSORT/ICETOOL 3 Thu Nov 02, 2017 3:43 pm
No new posts Copy 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm
No new posts XMITIP sends it out. Can it copy on l... Rommel Dayon Rustia IBM Tools 0 Tue Sep 05, 2017 10:16 am
No new posts Unable to copy data from spool in a d... srikant314 JCL & VSAM 8 Fri Jul 28, 2017 9:10 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us