Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 Copy 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm
No new posts sort records based on length exceeds ... maxsubrat DFSORT/ICETOOL 7 Wed Oct 04, 2017 4:48 pm
No new posts opening a dataset after reading it fr... arunsoods DFSORT/ICETOOL 5 Wed Oct 04, 2017 3:54 pm
No new posts Addition of two records on 2 fields amar143 SYNCSORT 8 Tue Oct 03, 2017 11:14 am
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us