View previous topic :: View next topic
|
Author |
Message |
madhusudan reddy Currently Banned New User
Joined: 17 Sep 2007 Posts: 3 Location: bangalore
|
|
|
|
hi,
I want to copy records from input data set to out put data set by using repro command. if there are 10 records in the output data set which are existed in input dataset. what will happen if i executed repro command for this? |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Have you done this on your system? It would be good to do this with test files and observe what happens.
As a hint, you might try different values in the first parameter of DISPosition.
After trying with IDCAMS, you could also try the same tests with IEBGENER and SORT. |
|
Back to top |
|
|
main_ani_frame
New User
Joined: 10 Aug 2007 Posts: 6 Location: Kolkata, India
|
|
|
|
Hi,
I am not very sure but I think the result shall depend on the definition of the output dataset. If I consider a specific case like the output dataset being a VSAM dataset, the output shall depend on the definition of the dataset. If replace option is used in the REPRO command, the file(s) that already exist in the output file shall be replaced by new files. If on the other hand, noreplace option is given, the new record in the input file is not copied and the old record is retained. Thats is to the best of my knowledge. I have never tried it though. Please give feedback if possible.
Thanks for the question. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
I'll second Discks comments - try it and see.
You learn much more by trial and error. |
|
Back to top |
|
|
|