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

How to insert records into the allready existing VSAM file


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
shreedhardeshpande

New User


Joined: 20 Jul 2007
Posts: 4
Location: pune, india

PostPosted: Tue Dec 16, 2008 2:42 pm
Reply with quote

Hi,

How to insert record with key into allready existing VSAM file.For example in the below file, I need to insert record with emp no = 3, emp name = TWS.

emp no (Key) Emp name
1 ABC
2 XYZ
4 PQR
5 ABC

Whether file should be opened in the output mode or I-O mode?.
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: Tue Dec 16, 2008 6:05 pm
Reply with quote

You can open the file in either I-O or output mode. Use the COBOL WRITE verb. Are you getting some response after trying this that raises an issue?
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 -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 4
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