View previous topic :: View next topic
|
Author |
Message |
i413678 Currently Banned Active User
Joined: 19 Feb 2005 Posts: 112 Location: chennai
|
|
|
|
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 |
|
|
sril.krishy
Active User
Joined: 30 Jul 2005 Posts: 183 Location: hyderabad
|
|
|
|
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 |
|
|
i413678 Currently Banned Active User
Joined: 19 Feb 2005 Posts: 112 Location: chennai
|
|
|
|
Hi,
what is the meaning of REUSE statement.....
thanks in advance....
pavan |
|
Back to top |
|
|
sril.krishy
Active User
Joined: 30 Jul 2005 Posts: 183 Location: hyderabad
|
|
|
|
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 |
|
|
callkris_cit
New User
Joined: 22 Apr 2006 Posts: 44
|
|
|
|
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 |
|
|
|