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 Passing data from REXX to C programme... chong.zhou All Other Mainframe Topics 0 Wed Jul 26, 2017 4:55 pm
No new posts copying data without knowing location arunsoods DFSORT/ICETOOL 6 Thu Jul 20, 2017 1:03 pm
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Loading data to table gives wrong for... Raghu navaikulam DB2 19 Thu Jul 13, 2017 2:11 pm
No new posts How to generate a new unique Input fi... for1ranjith CLIST & REXX 11 Sat Jul 01, 2017 12:09 pm


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