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
 
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: 10326
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 sort records based on length exceeds ... maxsubrat DFSORT/ICETOOL 7 Wed Oct 04, 2017 4:48 pm
No new posts Addition of two records on 2 fields amar143 SYNCSORT 8 Tue Oct 03, 2017 11:14 am
No new posts Execute JCL step based on the content... sprikitik JCL & VSAM 2 Tue Oct 03, 2017 10:03 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
No new posts Garbage on output file Hervey Martinez SYNCSORT 4 Wed Sep 27, 2017 12:50 am

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