Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

is it possible rewrite a record in esds files?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
View previous topic :: :: View next topic  
Author Message
naveensri2005
Currently Banned

New User


Joined: 22 Mar 2005
Posts: 51
Location: chennai

PostPosted: Tue Jun 28, 2005 6:00 pm    Post subject: is it possible rewrite a record in esds files?
Reply with quote

hi

In cics is it possible for rewrite a records in to a esds-files? if possible how it is? is it possible to read a record by using set and generic option. how it is.


naveen
Back to top
View user's profile Send private message

mdtendulkar

Active User


Joined: 29 Jul 2003
Posts: 238
Location: USA

PostPosted: Wed Jun 29, 2005 7:23 am    Post subject:
Reply with quote

naveensri2005,

Rewrite:

- Read the record with Update option
- Make updates
- Rewrite it to the file

Code:
EXEC CICS READ
      DATASET (DSNAME)
      INTO (WS-VAR)
      RIDFLD (KEY-FLD)
      LENGTH (LENGTH-FLD)
      UPDATE
      RBA
END-EXEC


Once the Read is successful, Update the required fields and rewrite the record as below

Code:
EXEC CICS REWRITE
     DATASET (DSNAME)
     FROM (WS-VAR)
     LENGTH (LENGTH-FLD)
     RBA
END-EXEC



Read with SET:

Code:
EXEC CICS READ
      DATASET (DSNAME)
      SET (ADDRESS OF WS-VAR)
      RIDFLD (KEY-FLD)
      LENGTH (LENGTH-FLD)
      RBA
END-EXEC



Read with GENERIC:

Code:
EXEC CICS READ
      DATASET (DSNAME)
      INTO (WS-VAR)
      RIDFLD (KEY-FLD)
      LENGTH (LENGTH-FLD)
      GENERIC
      KEYLENGTH (KEY-LENGTH-FLD)
      RBA
END-EXEC



Hope this helps

Regards
Mayuresh
Back to top
View user's profile Send private message
naveensri2005
Currently Banned

New User


Joined: 22 Mar 2005
Posts: 51
Location: chennai

PostPosted: Mon Jul 04, 2005 11:04 am    Post subject: Re: is it possible rewrite a record in esds files?
Reply with quote

hi

thanks for answer
Back to top
View user's profile Send private message
David P

Active User


Joined: 11 Apr 2005
Posts: 106
Location: Cincinnati Ohio

PostPosted: Mon Jul 04, 2005 4:47 pm    Post subject:
Reply with quote

Hi Mayuresh,

I believe the rewrite in ESDS is valid only if the lenght of the record which is to be rewritten is same as the previous record.

Correct me if I am wrong.

regards,
David.
Back to top
View user's profile Send private message
rachel

New User


Joined: 09 Mar 2005
Posts: 13

PostPosted: Tue Aug 30, 2005 2:51 pm    Post subject:
Reply with quote

Hi,



Is there a Key Field for esds file ?

icon_sad.gif
Back to top
View user's profile Send private message
rachel

New User


Joined: 09 Mar 2005
Posts: 13

PostPosted: Tue Aug 30, 2005 3:08 pm    Post subject:
Reply with quote

Hi,


Sorry for the misguidance, you can actually replace the field name in RIDFLD with RBA address in case of ESDS.
icon_razz.gif
Back to top
View user's profile Send private message
harish_mf

New User


Joined: 31 Jul 2005
Posts: 18
Location: bangalore

PostPosted: Thu Sep 01, 2005 1:17 pm    Post subject:
Reply with quote

rewriting the esds in cics, if u known the RBA value it can be but of same length record.
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 -> CICS All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts High CPU consumption Job using IAM fi... aswinir JCL & VSAM 15 Thu Dec 01, 2016 8:28 pm
No new posts How to update a portion of text in a ... Bill Woodger DFSORT/ICETOOL 25 Wed Nov 09, 2016 9:41 pm
No new posts Match or compare two files in VB Format anatol DFSORT/ICETOOL 14 Thu Nov 03, 2016 7:41 pm
This topic is locked: you cannot edit posts or make replies. How to use 2 input files in control c... Gunapala CN DFSORT/ICETOOL 23 Thu Oct 13, 2016 3:42 pm
No new posts sort with previous record anatol DFSORT/ICETOOL 9 Thu Oct 06, 2016 2:36 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us