IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

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


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Thu Apr 12, 2012 1:12 pm
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

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Thu Apr 12, 2012 1:34 pm
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
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
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

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Thu Apr 12, 2012 3:29 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 1
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
Search our Forums:

Back to Top