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
 

 

clarification on REPRO

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: clarification on REPRO
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: 182
Location: hyderabad

PostPosted: Tue May 23, 2006 5:22 pm    Post subject:
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    Post subject:
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: 182
Location: hyderabad

PostPosted: Wed May 24, 2006 10:34 am    Post subject:
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    Post subject: Re: clarification on REPRO
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    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 dataset copy question - REPRO or some... atulxp TSO/ISPF 2 Wed Aug 03, 2016 10:56 pm
No new posts Need clarification of VSAM FCT and DF... pkmurali CICS 15 Sun Apr 10, 2016 1:06 am
No new posts VB to KSDS repro kranthikumarb JCL & VSAM 1 Fri Aug 14, 2015 4:45 pm
No new posts Issue in FROMKEY(REPRO) VSAM having 1... thesumitk JCL & VSAM 5 Tue Jul 07, 2015 5:33 pm
No new posts Clarification regarding BUFNI & B... thirumalasetty JCL & VSAM 14 Tue Jun 17, 2014 8:22 pm


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