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

clarification on REPRO


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

Active User


Joined: 19 Feb 2005
Posts: 112
Location: chennai

PostPosted: Tue May 23, 2006 2:44 pm
Reply with quote

Hi,

normally in REPRO we can specify one INDD and one OUTDD.....is it possible to copy to more than one file using REPRO in one shot.....

means is it possible to give one INDD and more than OUTDD in the same step.....

thanks in advance....

pavan
Back to top
View user's profile Send private message
sril.krishy

Active User


Joined: 30 Jul 2005
Posts: 183
Location: hyderabad

PostPosted: Tue May 23, 2006 5:22 pm
Reply with quote

If you use more than one OUTDD statement in the REPRO ,your job will complete with return code zero.But the other files except the first will be empty.

In order to copy the file successfully,you need to code mulitple statments like below.

REPRO INFILE(IN01) OUTFILE(OUT01) REUSE
REPRO INFILE(IN01) OUTFILE(OUT02) REUSE
REPRO INFILE(IN01) OUTFILE(OUT03) REUSE

Thanks&Regards
Krishy
Back to top
View user's profile Send private message
i413678
Currently Banned

Active User


Joined: 19 Feb 2005
Posts: 112
Location: chennai

PostPosted: Wed May 24, 2006 10:05 am
Reply with quote

Hi,

what is the meaning of REUSE statement.....

thanks in advance....

pavan
Back to top
View user's profile Send private message
sril.krishy

Active User


Joined: 30 Jul 2005
Posts: 183
Location: hyderabad

PostPosted: Wed May 24, 2006 10:34 am
Reply with quote

Hi,
Please see the 2 options available with REPRO.

REUSE--->Used to reload the data

REPLACE-->Replace the existing data.

Hope this info is enough.

If you need more info try QW RERPO on command line.You can see a lot of info.

Thanks
Krishy
Back to top
View user's profile Send private message
callkris_cit

New User


Joined: 22 Apr 2006
Posts: 44

PostPosted: Wed May 31, 2006 3:37 pm
Reply with quote

Hi,

REPRO INFILE(IN01) OUTFILE(OUT01)
REPRO INFILE(IN01) OUTFILE(OUT02)
REPRO INFILE(IN01) OUTFILE(OUT03)

is enough for your requirement. If the Output file is a VSAM file then only the option REUSE is valid. And also that Output VSAM file should be created with the property 'REUSE'

Thanks
Suresh.
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 how to keep unpaired records with REPRO. JCL & VSAM 9
No new posts IDCAMS Allocate & Repro JCL & VSAM 9
No new posts dataset copy question - REPRO or some... TSO/ISPF 2
No new posts Need clarification of VSAM FCT and DF... CICS 15
No new posts VB to KSDS repro JCL & VSAM 1
Search our Forums:

Back to Top