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
 

 

how to write to ESDS file in cics

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

New User


Joined: 07 May 2006
Posts: 35

PostPosted: Wed Jul 15, 2009 5:13 am    Post subject: how to write to ESDS file in cics
Reply with quote

Hi, Everybody
Now I trig one transaction XXXX, which will write many records into a ESDS file. what confused me is that when trans is done without any abend, then i checked the esds file, it only include 272 records, however, in fact, it should have 7000+ records. after then, i close the ESDS file, i can check all of the reocrds (7000+) has been written to the esds file.Opps, why ?

Can anybody help me explian why ? by the way, resp=83,resp2=2 --> what's the problem ? i can not find them.

Thanks a lot ahead.

Have a nice day.
best regards
Shaw
Back to top
View user's profile Send private message

Robert Sample

Global Moderator


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

PostPosted: Wed Jul 15, 2009 5:47 am    Post subject:
Reply with quote

Until you close and reopen the file, CICS won't flush the buffers (unless the file is LSR and CICS needs them for another file). Therefore, until you close and reopen the file you normally will not see all the records written to the file.

There is a link to manuals at the top of the page. If you check the CICS Language Reference manual, Appendix A, on the EIB fields you will find that EIBRESP of 83 means END. The RESP2 value depends upon the precise CICS command being executed -- without knowing that, there's no way to state what it means.
Back to top
View user's profile Send private message
xpower

New User


Joined: 07 May 2006
Posts: 35

PostPosted: Wed Jul 15, 2009 5:54 am    Post subject:
Reply with quote

hehe, thanks Robert. do you know how to define the file to be LSR. in other words, how can i get all of the records without close/reopen . appreciate your post. icon_smile.gif
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


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

PostPosted: Wed Jul 15, 2009 6:56 am    Post subject:
Reply with quote

LSR will not let you view all the records without a close -- LSR means the buffers are shared between multiple files, so the buffers may (or may not, depending on how active the LSR pool's files are) get flushed faster.

The only way I know of to ensure all the records are available for viewing is to close and open the file in CICS.

Putting a file into an LSR pool requires looking at several factors, which is why it typically is done by the site support group. If you can use the CEDC transaction, you can determine whether the file already is in an LSR pool.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


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

PostPosted: Wed Jul 15, 2009 12:12 pm    Post subject:
Reply with quote

Quote:
then i checked the esds file,

how did you check the file?

keep in mind, another cics transaction can read these new records, as well as ceci can display them.

if you attempted to 'see' these new records via a batch process, your lack of technical understanding lead you to an incorrect conclusion.
Back to top
View user's profile Send private message
xpower

New User


Joined: 07 May 2006
Posts: 35

PostPosted: Wed Jul 15, 2009 4:18 pm    Post subject:
Reply with quote

Hi Robert,

Umm...I got it. Many Thanks. and i check the file has been already in lsr pool. icon_smile.gif

Hi, Dick,

the file is not used in batch process, just create theses file to check some information of these records by us . And many thanks to you as well. icon_smile.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 -> CICS All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 10 Tue May 16, 2017 2:20 pm
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts Issue with NDM process to transmit ES... chetanambi All Other Mainframe Topics 6 Wed May 03, 2017 10:52 am
No new posts File processing vishwakotin Mainframe Interview Questions 9 Fri Apr 28, 2017 11:38 am
No new posts Occurrence of various strings within ... TS70363 JCL & VSAM 1 Thu Apr 27, 2017 8:18 pm


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