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
 

 

Browsing last record from KSDS in CICS program

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

New User


Joined: 16 Sep 2005
Posts: 1

PostPosted: Sun Feb 04, 2007 2:09 am    Post subject: Browsing last record from KSDS in CICS program
Reply with quote

Hi.

I want to browse the last record from a KSDS file in CICS. I used high-values as key and startbr command. But, EIBRESP is 13.

If I am trying use READNEXT or READPREV it shows EIBRESP as 16. Can anyone help me.

Thanks
Murshid
Back to top
View user's profile Send private message

William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3158
Location: Tucson AZ

PostPosted: Sun Feb 04, 2007 2:59 am    Post subject: Re: Browsing last record from KSDS in CICS program
Reply with quote

murshidtp wrote:
I want to browse the last record from a KSDS file in CICS. I used high-values as key and startbr command. But, EIBRESP is 13.
If I am trying use READNEXT or READPREV it shows EIBRESP as 16. Can anyone help me.
The good news is that you can do what you want.
No generic key, must be full key of X'FF' (I'm not sure if EQUAL/GTEQ has bearing). From the FM (guide):
Quote:
You can start from the end of the data set by specifying a complete key of X'FF' characters on the STARTBR or RESETBR command. This points to the last record in the file ready for a backward browse.
and
Quote:
You can use a generic key on the STARTBR command when browsing through a KSDS. However, the browse can only continue forward through the file. If you process a READPREV command during such a browse, you get the INVREQ condition.
Hope that helps, keep us posted...

Bill
Back to top
View user's profile Send private message
sachin_star3
Warnings : 1

New User


Joined: 30 Sep 2006
Posts: 78
Location: pune

PostPosted: Mon Feb 05, 2007 2:15 am    Post subject:
Reply with quote

USE HURBA COMMAND T TSO PROMPT
HURBA - HI USE RBA ADDERESS
================SACHIN BORASE=================
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3158
Location: Tucson AZ

PostPosted: Mon Feb 05, 2007 2:24 am    Post subject: Re: Browsing last record from KSDS in CICS program
Reply with quote

Please respond and let us know how:
sachin_star3 wrote:
USE HURBA COMMAND T TSO PROMPT
HURBA - HI USE RBA ADDERESS
is an answer to this question:
murshidtp wrote:
I want to browse the last record from a KSDS file in CICS.
We are all awaiting your response.....
Back to top
View user's profile Send private message
Bruce Lankford

New User


Joined: 14 Aug 2014
Posts: 2
Location: USA

PostPosted: Mon Aug 18, 2014 8:55 pm    Post subject: high-values as key and startbr command. But, EIBRESP is 13
Reply with quote

This may not be your problem, unless this is a newly defined file, but it did happen to me, so it can happen. If you are doing a startbr without using generic and have all high-values in the entire key and are not using the "equal" parm. Your file will need the browse option on the file definition of course, and what happened to me, was that the system programmer that defined this new file to the CICS table (FCT I believe), fat fingered it, and pointed the DSN to a different existing file with a different key length. Assuming the file definition is correct. you should be able to execute a startbr with high-values in the key, and then read prev to get to the last record without any problem. It's kind of a long shot, but especially if it's a newly defined file, if you are having this problem when your code seems correct, you might want to double check the way the file is defined to CICS.
Back to top
View user's profile Send private message
Terry Heinze

JCL Moderator


Joined: 14 Jul 2008
Posts: 1249
Location: Richfield, MN, USA

PostPosted: Mon Aug 18, 2014 11:18 pm    Post subject:
Reply with quote

I hope murshidtp hasn't been waiting these 7½ years for the answer. icon_smile.gif
Back to top
View user's profile Send private message
Bruce Lankford

New User


Joined: 14 Aug 2014
Posts: 2
Location: USA

PostPosted: Tue Aug 19, 2014 1:42 am    Post subject:
Reply with quote

I know he's still not waiting on an answer. There is no need to try and be cute. It was just one more possibility out there for the next guy that comes along that's pulling his hair out trying to find out what the problem is. It might have saved me a couple of days of frustration, if someone else had added my answer before I figured this out. I was just trying to save the next guy some work, if that's alright with you.
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 IMS T-Pipe queue counts in a COBOL Pr... Siva NKK Kothamasu IMS DB/DC 0 Tue May 09, 2017 6:31 pm
No new posts Adding big TEXT lines to each record ... bshkris SYNCSORT 4 Sat May 06, 2017 1:40 am
This topic is locked: you cannot edit posts or make replies. Merge two files and update Trailer re... Yashashri JCL & VSAM 1 Thu May 04, 2017 12:54 pm
No new posts Need help in REXX CALL program Raje1002 CLIST & REXX 5 Wed Apr 19, 2017 11:18 pm
No new posts CICS Transaction Timeout Hooman24 CICS 2 Sun Apr 16, 2017 2:16 pm


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