Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
delete a record from a VSAM

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
futuredba

New User


Joined: 08 Jan 2006
Posts: 22
Location: Delhi

PostPosted: Fri Dec 05, 2008 3:43 am    Post subject: delete a record from a VSAM
Reply with quote

Hi,

I want to delete a record from a VSAM. I know the key of the record. But here are certain conditions:
1) I dont want to Del/Def the vsam.
2) I dont want to write any program. Just using any utility.
3) My Vsam is NOREUSEable.

Is it possible? If yes, how?

Thanks,
Sumit
Back to top
View user's profile Send private message

Terry Heinze

JCL Moderator


Joined: 14 Jul 2008
Posts: 1249
Location: Richfield, MN, USA

PostPosted: Fri Dec 05, 2008 7:17 am    Post subject:
Reply with quote

If you have File-Aid, you might be able to use that.
Back to top
View user's profile Send private message
futuredba

New User


Joined: 08 Jan 2006
Posts: 22
Location: Delhi

PostPosted: Fri Dec 05, 2008 8:56 am    Post subject:
Reply with quote

Hi Terry,

Sorry. I forgot to mention that I want to do it through a Jcl. I don't want to use File-Aid or File-Manager. I tried to use DFSORT, but it failed when the file was NOREUSE.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8619
Location: Back in jolly old England

PostPosted: Fri Dec 05, 2008 12:11 pm    Post subject:
Reply with quote

Then I would guess that the answer to your question is a rather resounding NO
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8201
Location: East Dubuque, Illinois, USA

PostPosted: Fri Dec 05, 2008 5:42 pm    Post subject:
Reply with quote

I echo expat on this -- based on the restrictions you're placing on the "need", there is no available way I am aware of to delete a record in a VSAM file.
Back to top
View user's profile Send private message
futuredba

New User


Joined: 08 Jan 2006
Posts: 22
Location: Delhi

PostPosted: Fri Dec 05, 2008 11:28 pm    Post subject:
Reply with quote

I also thought so. Just wanted to confirm this...

Thanks all,
Sumit
Back to top
View user's profile Send private message
GlobalGyan

New User


Joined: 31 Jan 2006
Posts: 28

PostPosted: Sat Dec 06, 2008 12:18 am    Post subject:
Reply with quote

It is been sometime since i have used FileAID, but is there a batch option in FileAID to delete the record? This would generate a JCL and a parm that will be passed to the fileAID batch program to delete the record?
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Sat Dec 06, 2008 12:31 am    Post subject:
Reply with quote

Hello,

Quote:
I don't want to use File-Aid or File-Manager.
Other than File-Aid being explicitly rejected as an option, it could work icon_wink.gif
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Sat Dec 06, 2008 12:36 am    Post subject:
Reply with quote

Hi GlobalGyan,

Are you saying or asking, am little confused .. icon_confused.gif . Yes you can run FileAid in batch..but 'am not able to comment furhter unless I get what exactly do you mean ?
Back to top
View user's profile Send private message
futuredba

New User


Joined: 08 Jan 2006
Posts: 22
Location: Delhi

PostPosted: Sat Dec 06, 2008 1:35 am    Post subject:
Reply with quote

My shop dont have File-Aid instead it has File-Manager. I assume they both are more or less same.

In File-Manager (and hoping in File-Aid too), we can generate batch job only for the Utilities option like create dataset, copy dataset, sreachfor, other catalog services, compare etc etc... But we want to delete a record from a vsam. For doing this, we dont go to Utility option instead go to Edit option and delete it. And in Edit option, we cant generate any jcl.

Please correct me if I am wrong.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8201
Location: East Dubuque, Illinois, USA

PostPosted: Sat Dec 06, 2008 1:54 am    Post subject:
Reply with quote

If the file is defined in a CICS region, you could use CECI to delete it.

One suggestion that came up here is to print out the entire file and use white-out on the record. icon_smile.gif
Back to top
View user's profile Send private message
Terry Heinze

JCL Moderator


Joined: 14 Jul 2008
Posts: 1249
Location: Richfield, MN, USA

PostPosted: Sat Dec 06, 2008 9:55 am    Post subject:
Reply with quote

That method works on my monitor with a green magic marker -- don't see why it can't work with your method, Robert. icon_lol.gif
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts ISSUE IN copying Sequential file reco... thesumitk JCL & VSAM 2 Wed Dec 13, 2017 3:07 pm
No new posts query to fetch record which has only ... maxsubrat DB2 12 Mon Dec 11, 2017 5:03 pm
No new posts Extract record for change in combinat... Trinadh DFSORT/ICETOOL 6 Thu Nov 23, 2017 3:32 pm
No new posts Compare VSAM files using DFSORT pshongal DFSORT/ICETOOL 5 Thu Nov 23, 2017 10:24 am
No new posts Extract Record using range of Data scorp_rahul23 DFSORT/ICETOOL 3 Wed Nov 15, 2017 11:54 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us