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
 

 

Could matched records from i/p file be omitted on REPRO

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
Debasis Misra
Warnings : 1

New User


Joined: 16 Sep 2008
Posts: 72
Location: Bangalore

PostPosted: Thu Apr 12, 2012 12:45 pm    Post subject: Could matched records from i/p file be omitted on REPRO
Reply with quote

Hi

I have a VSAM file with layout as below

First File or the input file
Code:
0001XXX1
0002XX2
0003XXX1

If i have to copy this data into another VSAM file with the same record layout and properties. And i don't want to overlay data which already exists in the second file

Second File or the output file
Code:
0001XX1
0003XX3

I want the o/p file layout to be

Code:
0001XXX1
0002XX2
0003XX3

Is it possible to achieve this with REPRO? Is there any other method by which this could be acheived?
Back to top
View user's profile Send private message

Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7315

PostPosted: Thu Apr 12, 2012 1:12 pm    Post subject: Reply to: Could matched records from i/p file be omitted on
Reply with quote

You didn't think to mention what type of VSAM file it is.
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10276
Location: italy

PostPosted: Thu Apr 12, 2012 1:34 pm    Post subject: Reply to: Could matched records from i/p file be omitted on
Reply with quote

Quote:
Is it possible to achieve this with REPRO? Is there any other method by which this could be acheived?


using REPRO NO
using <SORT> YES
Back to top
View user's profile Send private message
Debasis Misra
Warnings : 1

New User


Joined: 16 Sep 2008
Posts: 72
Location: Bangalore

PostPosted: Thu Apr 12, 2012 2:40 pm    Post subject: Re: Reply to: Could matched records from i/p file be omitted
Reply with quote

Bill Woodger wrote:
You didn't think to mention what type of VSAM file it is.


Sorry i did not mention this earlier. Both the files are VSAM Key sequence Datasets
Back to top
View user's profile Send private message
Debasis Misra
Warnings : 1

New User


Joined: 16 Sep 2008
Posts: 72
Location: Bangalore

PostPosted: Thu Apr 12, 2012 3:06 pm    Post subject: Re: Reply to: Could matched records from i/p file be omitted
Reply with quote

Quote:

using REPRO NO
using <SORT> YES


Now that i know REPRO is not possible i will try SORT.

I also changed how the data in files will be. I noticed a typo from earlier

Code:


KSDS 1
0001XXX1
0002XXX2
0003XXX1



Code:


KSDS 2
0001XXX1
0003XXX3


Code:

o/p KSDS
0001XXX1
0002XXX2
0003XXX3


Where the first 4 bytes are the key of the KSDS

The o/p KSDS needs to have all data present in the 2nd KSDS and the records in KSDS1 which are not present in KSDS2. Basically i want to copy data from first KSDS into 2nd KSDS without overlaying any data
Back to top
View user's profile Send private message
Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7315

PostPosted: Thu Apr 12, 2012 3:29 pm    Post subject: Reply to: Could matched records from i/p file be omitted on
Reply with quote

I was wondering why enrico said No. I guess he was looking at your data, which does not match your original description in the text.

If you have on your input file a mix of keys which are already present, and keys which are not already present, and you just want those records which have keys which are not already present, the look at the manual which describes IDCAMS, find the bit about REPRO and look at REPLACE within REPRO and see if that will do what you want.
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 Extra character appears in file when ... Balu5491 All Other Mainframe Topics 1 Wed Jul 26, 2017 2:39 pm
No new posts SSH - known_hosts file configuration vasanthz All Other Mainframe Topics 2 Wed Jul 26, 2017 2:10 am
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 Write out NODUPS but just from one file Jay Villaverde DFSORT/ICETOOL 8 Fri Jul 14, 2017 12:44 am
No new posts How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm


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