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

Delete a particular record from VSAM


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

New User


Joined: 04 Dec 2008
Posts: 4
Location: Chennai

PostPosted: Tue Aug 11, 2009 10:53 am
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Tue Aug 11, 2009 11:04 am
Reply with quote

/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
View user's profile Send private message
anandprabhu

New User


Joined: 04 Dec 2008
Posts: 4
Location: Chennai

PostPosted: Tue Aug 11, 2009 11:12 am
Reply with quote

Thanks for the info expat icon_smile.gif

Can i use DFSORT for the above mentioned actions ?
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Tue Aug 11, 2009 11:19 am
Reply with quote

Search the DFSORT forum, I'm sure it has been discussed a few times in there
Back to top
View user's profile Send private message
anandprabhu

New User


Joined: 04 Dec 2008
Posts: 4
Location: Chennai

PostPosted: Tue Aug 11, 2009 11:41 am
Reply with quote

Thank you !
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Developer


Joined: 15 Feb 2005
Posts: 7129
Location: San Jose, CA

PostPosted: Tue Aug 11, 2009 9:42 pm
Reply with quote

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
View user's profile Send private message
anandprabhu

New User


Joined: 04 Dec 2008
Posts: 4
Location: Chennai

PostPosted: Wed Aug 12, 2009 9:57 am
Reply with quote

Thanks for asking Frank icon_smile.gif

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
View user's profile Send private message
Frank Yaeger

DFSORT Developer


Joined: 15 Feb 2005
Posts: 7129
Location: San Jose, CA

PostPosted: Wed Aug 12, 2009 9:33 pm
Reply with quote

Good.
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 How to split large record length file... DFSORT/ICETOOL 10
No new posts DELETE SPUFI DB2 1
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts DSNTIAUL driven delete IBM Tools 0
No new posts Access to non cataloged VSAM file JCL & VSAM 18
Search our Forums:

Back to Top