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

ISSUE IN copying Sequential file records in VSAM KSDS file


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
thesumitk

Active User


Joined: 24 May 2013
Posts: 156
Location: INDIA

PostPosted: Wed Dec 13, 2017 3:07 pm
Reply with quote

I am trying to copy input file in Output VSAM file, with delete define option.

Example in input file I have 100 records with Key1 to Key100 and Output VSAM is having Key1 to Key999.

My output should have only Input file Key1 to Key100.
Am trying with
REPRO INFILE (IN1) OUTFILE (OUT1) and using OUT1 disp=old.
But getting error, key already exist. please help, I don't want to delete define the VSAM file.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed Dec 13, 2017 3:15 pm
Reply with quote

The input is a PS file ? with the target being a VSAM KSDS I assume.
I assume because your post lacks any real detail.

Why do you believe that using REPRO from a PS file will delete any records not included in the PS file from the output VSAM file ??? Why should this process delete records, please explain your logic here.

You may not want to delete the VSAM file, but tough luck, you're probably going to have to unless you have a program to delete unwanted records.

You need to read up and understand VSAM a lot better than you do.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Wed Dec 13, 2017 6:19 pm
Reply with quote

You obviously have multiple misconceptions about VSAM (such concepts as REPRO won't replace records, nor will it delete records from the VSAM data set). Start reading VSAM Demystified to learn what you do not understand.
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 Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts Access to non cataloged VSAM file JCL & VSAM 18
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Need help for File Aid JCL to extract... Compuware & Other Tools 23
Search our Forums:

Back to Top