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

How to delete a record from a ESDS file?


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
reachcyrus

New User


Joined: 13 Jul 2007
Posts: 24
Location: chennai

PostPosted: Thu Jul 19, 2007 10:28 am
Reply with quote

i tried opening a ESDS file and deleted a record.Mvs responded with a error message as "operation cannot be done".

How to delete a record in ESDS file manually?

Why we are not able to delete record from a ESDS file?
could someone help me!

Cheers!
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Thu Jul 19, 2007 12:37 pm
Reply with quote

How do you mean manually ? FileAid ? A program ?

When you delete an ESDS record, it is only a logical delete and the record will only be physically deleted when you next unload / reload the file.
Back to top
View user's profile Send private message
reachcyrus

New User


Joined: 13 Jul 2007
Posts: 24
Location: chennai

PostPosted: Thu Jul 19, 2007 1:50 pm
Reply with quote

Hi expat,

using File aid.

i am not clear about your explanation. can you brief me.

cheers!!
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Thu Jul 19, 2007 2:23 pm
Reply with quote

Cyrus,

Do you know what a tape file is?
Can you delete a record from a tape file without copying it to another file?
ESDS files are like that......
The only thing you can do "in place" is to mark the record so that when any other program reads that record, it will know that the record is "deleted".
Back to top
View user's profile Send private message
reachcyrus

New User


Joined: 13 Jul 2007
Posts: 24
Location: chennai

PostPosted: Thu Jul 19, 2007 2:42 pm
Reply with quote

Hi william.

i got it.
but i need the reason, why it cannot be deleted physically.
any special reasons?
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Thu Jul 19, 2007 2:48 pm
Reply with quote

reachcyrus wrote:

but i need the reason, why it cannot be deleted physically.
any special reasons?
Because there is no facility or process to remove the hole left when you would delete an ESDS record.
If the hole (the record's data replaced with low values?) was left in place, then all the other programs that read that file would have to know that the low value record was a deleted record - that it was "logically deleted".....
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts How to split large record length file... DFSORT/ICETOOL 7
No new posts DELETE SPUFI DB2 1
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts DSNTIAUL driven delete IBM Tools 0
Search our Forums:

Back to Top