View previous topic :: View next topic
|
Author |
Message |
Lkmi
New User
Joined: 04 Mar 2005 Posts: 53 Location: Newyork
|
|
|
|
Why do we go for Delete Define of VSAM file??? |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Because that is the way VSAM files are created (defined). They require more info than simple PS and/or PDS datasets.
If you read the VSAM manual (available from the "Manuals" link on the top row of the web page), you may read all of the details of VSAM. |
|
Back to top |
|
|
Lkmi
New User
Joined: 04 Mar 2005 Posts: 53 Location: Newyork
|
|
|
|
what does delete define actually means???
what happens internally?????
i understand that define is teh function that craetes the file but what kind of a delete happens before the creation???? |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Delete is usually specified before a define to ensure that any previoiusly created contents are removed. If it is always in the control statements, there is no need to have separate runs depending on if this is a new file or an already existing file.
The define pre-formats/initializes the dasd allocated for the VSAM "file".
For complete understanding of the define parameters, please refer to the vsam manual.
An easy way is to look at one of your application's vsam definitions and then find the corresponding parameters in the manual - you will see what your definition means as well as other options that might have been chosen. |
|
Back to top |
|
|
Lkmi
New User
Joined: 04 Mar 2005 Posts: 53 Location: Newyork
|
|
|
|
Thanks Dick for the prompt response |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
You're welcome |
|
Back to top |
|
|
|