View previous topic :: View next topic
|
Author |
Message |
anandprabhu
New User
Joined: 04 Dec 2008 Posts: 4 Location: Chennai
|
|
|
|
Hi all,
I would like to know how to delete a particular record in a VSAM KSDS using JCL program. Since the dataset is huge i would like to delete a single record based in some parameters. Thanks |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
/RANT ON
Once more let us clarify exactly what JCL is.
it is Job Control Language.
By itself it does nothing. It is used to invoke the chosen program and to define which datasets are to be used by the DD names associated with the chosen program.
JCL does not have magical powers that solve all problems, JCL is merely the vehicule for telling the processor which program you want it to execute.
/RANT OFF
You will need to
(a) Write and execute a program
(b) Use your SORT product
(c) Unload, delete the record, reload the VSAM file |
|
Back to top |
|
|
anandprabhu
New User
Joined: 04 Dec 2008 Posts: 4 Location: Chennai
|
|
|
|
Thanks for the info expat
Can i use DFSORT for the above mentioned actions ? |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Search the DFSORT forum, I'm sure it has been discussed a few times in there |
|
Back to top |
|
|
anandprabhu
New User
Joined: 04 Dec 2008 Posts: 4 Location: Chennai
|
|
|
|
Thank you ! |
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
Quote: |
i would like to delete a single record based in some parameters. |
What parameters? What exactly identifies the single record you want to delete? |
|
Back to top |
|
|
anandprabhu
New User
Joined: 04 Dec 2008 Posts: 4 Location: Chennai
|
|
|
|
Thanks for asking Frank
I found the solution in the DFSORT forum. By using a simple OMIT condition i was able to achieve that. Thanks again |
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
Good. |
|
Back to top |
|
|
|