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

REPRO for copying datasets


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

New User


Joined: 30 Jan 2008
Posts: 26
Location: Chennai

PostPosted: Thu Feb 26, 2009 12:50 pm
Reply with quote

Hi,

I was trying to use REPRO command in IDCAMs for copying datasets.

REPRO INDATASET('ABCD.ABC1') -
OUTDATASET('ABCD.ABC2')

I get the ff error
DATA SET NOT FOUND IN CATALOG
DSN = "HMEAT.HMAPC.HM1000.DEEP "

Does that mean that the output file that i am using in REPRO should be
catalogued / allocated before using it ???

Regards,
Karthi
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Thu Feb 26, 2009 12:51 pm
Reply with quote

yes!
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu Feb 26, 2009 1:03 pm
Reply with quote

And here was I wondering why if you were using dataset 'ABCD.ABC2' as output, why on earth you would get an error on dataset "HMEAT.HMAPC.HM1000.DEEP "

Please ensure that information posted in pursuit of a solution to your problem is accurate and really does reflect the problem in hand.
Back to top
View user's profile Send private message
jaspal

New User


Joined: 22 May 2007
Posts: 68
Location: mumbai

PostPosted: Thu Feb 26, 2009 5:23 pm
Reply with quote

Hi DKartiya,

Repro is used to copy a records from Flat file to VSAM.
it is pretty much clear if you won't have input file to be copied into output file then how can a job complete successfuly.


Code:
//STEP010   EXEC PGM=IDCAMS, REGION=512K         
//*                                             
//SYSPRINT DD SYSOUT=*                         
//SYSUDUMP DD SYSOUT=*                         
//*                                             
//OSEQFIL1 DD DSN=F1.SEQ.FILE,         
//            DISP=SHR                         
//*                                             
//XVSMFIL1 DD DSN=F1.VSAM.FILE,
//            DISP=OLD                         
//*                                             
//SYSIN    DD *
  REPRO INFILE (OSEQFIL1) OUTFILE (XVSMFIL1) 
/*


Here : OSEQFIL1 is input flat file or GDG version or base
XVSMFIL1 is ouput file i.e ( VSAM :it should be allocated)

I think you are from APCD.

Thanks,
Jaspal
Edited by expat to remove telephone number
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu Feb 26, 2009 5:42 pm
Reply with quote

Quote:
Repro is used to copy a records from Flat file to VSAM.

And also VSAM to flat, VSAM to VSAM, flat to flat.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Thu Feb 26, 2009 6:10 pm
Reply with quote

Hi,
jaspal wrote:
Repro is used to copy a records from Flat file to VSAM.
Kind of half truth..You can use the REPRO command of IDCAMS to copy VSAM and non-VSAM data sets, VSAM clusters, and alternate indexes. You cannot use REPRO to copy an entire partitioned data set (PDS) because REPRO does not copy the information in the directories. You can, however, use REPRO to copy individual members.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Thu Feb 26, 2009 6:13 pm
Reply with quote

ah..Expat you seem to deal in fast cars these days... icon_biggrin.gif

Quote:
I think you are from APCD.
How about me.. icon_smile.gif ?
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu Feb 26, 2009 6:30 pm
Reply with quote

Quote:
ah..Expat you seem to deal in fast cars these days... icon_biggrin.gif

No, just drive them icon_lol.gif
Back to top
View user's profile Send private message
jaspal

New User


Joined: 22 May 2007
Posts: 68
Location: mumbai

PostPosted: Thu Feb 26, 2009 7:03 pm
Reply with quote

Hi Expat / Anuj,

Thanks for adding your valuable points.


Thanks,
Jaspal
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Sat Feb 28, 2009 5:47 pm
Reply with quote

You're welcome... icon_smile.gif
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 Merging 2 datasets into one DFSORT/ICETOOL 1
No new posts Panvalet - 9 Character name - Issue c... CA Products 6
No new posts how to keep unpaired records with REPRO. JCL & VSAM 9
No new posts PL/I, VB Datasets and the RDW PL/I & Assembler 4
No new posts how to get list of all VSAM/non-VSAM ... JCL & VSAM 13
Search our Forums:

Back to Top