View previous topic :: View next topic
|
Author |
Message |
ramvivek
New User
Joined: 23 Oct 2006 Posts: 13
|
|
|
|
why shoould we copy a dummy record to VSAM before we use the same in COBOL program ? What is the mechanism behind it ?
Thanks,
Ramkumar M. |
|
Back to top |
|
|
murmohk1
Senior Member
Joined: 29 Jun 2006 Posts: 1436 Location: Bangalore,India
|
|
|
|
Ram,
Empty VSAM can't be opened in INPUT mode. It throws an error. |
|
Back to top |
|
|
ramvivek
New User
Joined: 23 Oct 2006 Posts: 13
|
|
|
|
Murali,
But what makes the diff between a flat file and VSAM in this aspect . We dont have to create a dummy rec for flat file. Then why it is needed for a VSAM ? |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Because VSAM is a totally different access method designed by IBM, |
|
Back to top |
|
|
|