MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Reg:Issue with VSAM Sequential Read in CICS

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> CICS and Middleware
View previous topic :: View next topic  
Author Message
apru
Beginner


Joined: 15 Feb 2014
Posts: 25
Topics: 6

PostPosted: Wed Apr 27, 2016 7:39 am    Post subject: Reg:Issue with VSAM Sequential Read in CICS Reply with quote

Hi

I am trying to read a VSAM file sequentially using a CICS program.

I have made use of the commands - STARTBR , READNEXTand ENDBR for this operation to perform read from the beginning of the file (X'00') till END OF FILE condition.

The program works fine for the first 2 transactions.Thereafter only the last record of the file is fetched even after setting the pointer to the beginning of the file (X'00') .

I am not able to trace the cause for this abnormal behaviour.

Request your inputs.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12354
Topics: 75
Location: San Jose

PostPosted: Wed Apr 27, 2016 11:34 am    Post subject: Reply with quote

apru,

What kind of the vsam cluster is that you are reading? KSDS? RRDS? LDS?

I am guessing that you are performing this test in your test region. Are you sure that the test vsam cluster has more than 2 records?

Did you Repro the file you are having a problem and make sure that you have more records?

Did you make sure the filenames matches with CICS FCT entries?
_________________
Kolusu - DFSORT Development Team (IBM)
DFSORT is on the Web at:
www.ibm.com/storage/dfsort

www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
apru
Beginner


Joined: 15 Feb 2014
Posts: 25
Topics: 6

PostPosted: Wed Apr 27, 2016 8:45 pm    Post subject: Reply with quote

Hi kolusu

The VSAM is KSDS and the filename does match with the FCT entry.

The thing is I am able to read the whole dataset the first two times the transaction is hit.

From third time,I am able to read only the last record.
Back to top
View user's profile Send private message
apru
Beginner


Joined: 15 Feb 2014
Posts: 25
Topics: 6

PostPosted: Wed Apr 27, 2016 8:53 pm    Post subject: Reply with quote

kolusu

When I did CEDF I found that the READNEXT is taking only the last record even after setting pointer to first record in STARTBROWSE.

But for the first two transactions, the READNEXT is taking the frist record.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12354
Topics: 75
Location: San Jose

PostPosted: Thu Apr 28, 2016 1:34 pm    Post subject: Reply with quote

apru,

You need to show us the code.

how is the key field defined in KSDS?
_________________
Kolusu - DFSORT Development Team (IBM)
DFSORT is on the Web at:
www.ibm.com/storage/dfsort

www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> CICS and Middleware All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group