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

how to write to ESDS file in cics


IBM Mainframe Forums -> CICS
Post new topic   Reply to topic
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
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: 8696
Location: Dubuque, Iowa, USA

PostPosted: Wed Jul 15, 2009 5:47 am
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
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: 8696
Location: Dubuque, Iowa, USA

PostPosted: Wed Jul 15, 2009 6:56 am
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: 6966
Location: porcelain throne

PostPosted: Wed Jul 15, 2009 12:12 pm
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CICS

 


Similar Topics
Topic Forum Replies
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Using API Gateway from CICS program CICS 0
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 Write line by line from two files DFSORT/ICETOOL 7
Search our Forums:

Back to Top