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

Insert a rec in vsam file


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
prabs2006

Active User


Joined: 12 Jan 2006
Posts: 103

PostPosted: Thu Aug 17, 2006 12:00 pm
Reply with quote

Can we insert a reccord in KSDS vsam file by editing it?
If not, h can we do the same in JCL
Back to top
View user's profile Send private message
parikshit123

Active User


Joined: 01 Jul 2005
Posts: 269
Location: India

PostPosted: Thu Aug 17, 2006 12:36 pm
Reply with quote

Hi,

I think, you can use WRITE statement to insert a record in a VSAM cluster. Make sure that you handle duplicat keys and/or key out of sequence errors.

I am not really sure how to do that using JCL.
Back to top
View user's profile Send private message
SBMF390

New User


Joined: 27 Jul 2006
Posts: 9

PostPosted: Thu Aug 17, 2006 3:34 pm
Reply with quote

1. Using JCL.
-You must have the new record in a flat file1.
-Repro the content of VSAm file in another File2.
-Sort in File1 and File2 into another file3.
Sort in AScending using the VASM Key.
Now Delete define the VSAM file and repto the sorted file3 into VSAM file.

2. By cobol program

3. By File Aid in Edit mode, insert it in between the two records such that the Key is between upper and below records.
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 -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
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
Search our Forums:

Back to Top