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: 10256
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 Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 10 Tue May 16, 2017 2:20 pm
No new posts Check if any Detail records and extra... V S Amarendra Reddy SYNCSORT 19 Mon May 08, 2017 8:54 pm
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts Issue with NDM process to transmit ES... chetanambi All Other Mainframe Topics 6 Wed May 03, 2017 10:52 am
No new posts File processing vishwakotin Mainframe Interview Questions 9 Fri Apr 28, 2017 11:38 am


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