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

Copy records from input data set using repro command


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

New User


Joined: 17 Sep 2007
Posts: 3
Location: bangalore

PostPosted: Wed Sep 26, 2007 8:52 pm
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Sep 27, 2007 2:54 am
Reply with quote

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
View user's profile Send private message
main_ani_frame

New User


Joined: 10 Aug 2007
Posts: 6
Location: Kolkata, India

PostPosted: Thu Sep 27, 2007 6:06 pm
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu Sep 27, 2007 9:45 pm
Reply with quote

I'll second Discks comments - try it and see.
You learn much more by trial and error.
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 RACF - Rebuild SETROPTS command which... All Other Mainframe Topics 3
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts Routing command Address SDSF to other... TSO/ISPF 2
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Pulling a fixed number of records fro... DB2 2
Search our Forums:

Back to Top