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
 
ISSUE IN copying Sequential file records in VSAM KSDS file

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

Active User


Joined: 24 May 2013
Posts: 137
Location: INDIA

PostPosted: Wed Dec 13, 2017 3:07 pm    Post subject: ISSUE IN copying Sequential file records in VSAM KSDS file
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: 8752
Location: Welsh Wales

PostPosted: Wed Dec 13, 2017 3:15 pm    Post subject:
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: 8411
Location: Dubuque, Iowa, USA

PostPosted: Wed Dec 13, 2017 6:19 pm    Post subject:
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    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 Copy Group of Records scorp_rahul23 DFSORT/ICETOOL 1 Sun Jan 13, 2019 9:17 am
No new posts calculate the record count and based ... naveensrimf DFSORT/ICETOOL 1 Tue Jan 08, 2019 11:20 pm
No new posts Add week number to a file name or rep... tejdeep0274 JCL & VSAM 2 Thu Jan 03, 2019 6:49 am
No new posts Joining 2 records to 1 using Sort cmuncan DFSORT/ICETOOL 1 Sat Dec 08, 2018 8:53 am
No new posts Transferring file to Mainframes Shinoj Vijayakumar IBM Tools 3 Thu Dec 06, 2018 2:35 pm

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