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
 
VSAM File Delete, Insert - IDCAMS

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

New User


Joined: 01 Nov 2007
Posts: 17
Location: Chennai

PostPosted: Fri Jun 27, 2008 4:04 pm    Post subject: VSAM File Delete, Insert - IDCAMS
Reply with quote

There's a VSAM file with 'n' records and I have to delete 10 records ( whose keys are A1,A2,A3...A10 ) in it and have to insert 10 new records (say New records keys as B1,B2,B3...B10) instead.

I want to perform this insertion & deletion using IDCAMS.


Regards,
Chinna.
Back to top
View user's profile Send private message

expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Fri Jun 27, 2008 6:17 pm    Post subject:
Reply with quote

Insert isn't a problem - use REPRO

But how to use IDCAMS to delete records - Can't be done.
Back to top
View user's profile Send private message
ksathishkumar83

New User


Joined: 21 Nov 2006
Posts: 50
Location: India

PostPosted: Sat Jun 28, 2008 11:51 am    Post subject: Reply to: VSAM File Delete, Insert - IDCAMS
Reply with quote

Hi,

Copy the VSAM file contents to a Flat file. Delete the records you want to delete and insert new records in the Flat File.

Delete & Define the VSAM File .Repro the contents of Flat file to VSAM.
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Sat Jun 28, 2008 12:05 pm    Post subject:
Reply with quote

Hello,

Quote:
Delete the records you want to delete and insert new records in the Flat File.
Make sure the inserted new records are in sequence.
Back to top
View user's profile Send private message
chinnaraj

New User


Joined: 01 Nov 2007
Posts: 17
Location: Chennai

PostPosted: Tue Jul 29, 2008 2:05 pm    Post subject: Thanks !!!
Reply with quote

Thanks to everyone !!!
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 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 VSAM RLS Wait time blayek JCL & VSAM 2 Mon Oct 02, 2017 9:05 pm
No new posts How to insert a value on specific pos... Poha Eater DFSORT/ICETOOL 9 Sun Oct 01, 2017 3:04 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