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

Sample program of how to write vsam file in cobol


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

New User


Joined: 01 Aug 2006
Posts: 3
Location: pune

PostPosted: Mon Aug 28, 2006 1:59 pm
Reply with quote

can anyone give me sample program of how to write vsam file in cobol.
and y free space neessry in ci

WARNING: TITLE EDITED
Back to top
View user's profile Send private message
Deepa.m

New User


Joined: 28 Apr 2005
Posts: 99

PostPosted: Mon Aug 28, 2006 2:15 pm
Reply with quote

freespace are necessary to expand the control interval block .as we know VSAM files ,the records are stored in sorted order and when it is required to insert few rows in that block we need free space to accomodate that.

eg : new row to insert is 2007.. Since we have got FS in II CI block we can insert 2007 in II block directly thereby avoiding the complete sort process if we have to add at the end

I block
1000
1001
1003
FS
....
II block
2005
2006
FS
...
III block
3000
3001
FS


This is what my understanding is ..let me know if I am wrong
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 FTP VB File from Mainframe retaining ... JCL & VSAM 1
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 Replace each space in cobol string wi... COBOL Programming 3
No new posts Using API Gateway from CICS program CICS 0
Search our Forums:

Back to Top