Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

REPRO for copying datasets

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: REPRO for copying datasets
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10256
Location: italy

PostPosted: Thu Feb 26, 2009 12:51 pm    Post subject: Reply to: REPRO for copying datasets
Reply with quote

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

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Thu Feb 26, 2009 1:03 pm    Post subject:
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    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Thu Feb 26, 2009 5:42 pm    Post subject:
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

Senior Member


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

PostPosted: Thu Feb 26, 2009 6:10 pm    Post subject:
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

Senior Member


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

PostPosted: Thu Feb 26, 2009 6:13 pm    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Thu Feb 26, 2009 6:30 pm    Post subject:
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    Post subject:
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

Senior Member


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

PostPosted: Sat Feb 28, 2009 5:47 pm    Post subject:
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    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
This topic is locked: you cannot edit posts or make replies. SDSF multiple spool datasets extracte... PJAlarcon CLIST & REXX 1 Fri Apr 21, 2017 10:50 pm
No new posts Edit large number of datasets (QSAM) zh_lad TSO/ISPF 3 Tue Apr 04, 2017 6:08 pm
No new posts Copying Panvalet members to PDS LOGESHWARAN K CA Products 4 Mon Mar 06, 2017 10:45 am
No new posts DUMP DATASETS VS TRACE DATASETS! lind sh CICS 4 Tue Dec 06, 2016 11:31 pm
No new posts Single COPY CICS TS datasets and when... Kyle Carroll CICS 2 Tue Oct 11, 2016 9:47 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us