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

Syntax to update and delete from an ESDS


IBM Mainframe Forums -> CICS
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
MARINA JOSEPH

New User


Joined: 11 Jun 2009
Posts: 61
Location: chennai

PostPosted: Wed Jun 17, 2009 5:33 pm
Reply with quote

Hi all,

Can somebody give me the syntax to update and delete from an ESDS file. In the programs link i only found how to read and write.

Thanks,
Marina.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Wed Jun 17, 2009 5:42 pm
Reply with quote

From the VSAM Demystified redbook (emphasis added by me):
Quote:
An ESDS is comparable to a sequential non-VSAM data set in the sense that
records are sequenced by the order of their entry in the data set, rather than by
key field in the logical record, which could be fixed or variable length records.
All new records are placed at the end of the data set. There is no split concept.
Existing records can never be deleted. As far as VSAM is concerned, the record
is not deleted. It is the responsibility of the application program to identify that
record as invalid. If the application wants to delete a record, it must flag that
record as inactive.
Records can be updated, but without length change. To change the length of a
record, you must either store it at the end of the data set as a new record, or
override an existing record of the same length that you have flagged as inactive.
Back to top
View user's profile Send private message
MARINA JOSEPH

New User


Joined: 11 Jun 2009
Posts: 61
Location: chennai

PostPosted: Wed Jun 17, 2009 5:49 pm
Reply with quote

Hi,

Thanks for the information.
Is it possible to give me the syntax to update the record in ESDS.

Thanks,
Marina.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Wed Jun 17, 2009 5:50 pm
Reply with quote

Within the document that you did not bother to closely read:

3REWRITE <<<<<<<<<this is how an UPDATE is performed
4DELETE <<<<<<<<<self explanatory (but not for esds which cannot be done)
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Wed Jun 17, 2009 5:51 pm
Reply with quote

once that has been eshtablished that the <KEY> for a random read of an ESDS is the RBA,
the syntax for the update/rewrite follows the rules of any other update/rewrite
look at the relevant cics manuals ( Link at top of the page )
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 -> CICS

 


Similar Topics
Topic Forum Replies
No new posts PARSE Syntax for not fix length word ... JCL & VSAM 7
No new posts DELETE SPUFI DB2 1
No new posts DSNTIAUL driven delete IBM Tools 0
No new posts Random read in ESDS file by using RBA JCL & VSAM 6
No new posts How to delete a user's alias from the... JCL & VSAM 11
Search our Forums:

Back to Top