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
 

 

Copy records from input data set using repro command

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Copy records from input data set using repro command
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

Site Director


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

PostPosted: Thu Sep 27, 2007 2:54 am    Post subject:
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    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Thu Sep 27, 2007 9:45 pm    Post subject:
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    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 SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm
No new posts Storing huge volume of data, compare ... Pradeep K M All Other Mainframe Topics 3 Mon Jan 16, 2017 5:08 pm
No new posts how to recover an uncataloged VSAM da... archanamuthukrishnan All Other Mainframe Topics 3 Wed Jan 11, 2017 6:18 pm
No new posts HALDB data refresh/copy from producti... vineetanand2007 IMS DB/DC 0 Mon Jan 02, 2017 11:16 am
No new posts Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm


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