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

VSAM - INVREQ(RESP 16) while STARTBR a file.


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Senthilkumar k
Warnings : 1

New User


Joined: 07 May 2009
Posts: 51
Location: Chennai

PostPosted: Wed Aug 05, 2009 3:11 pm
Reply with quote

I am getting the error message saying INVREQ(RESP 16) while doing STARTBR for a VSAM file. I am initializing the key and doing the STARTBR, find the code below,

INITIALIZE FILE-KEY-SO(first 22bytes is key)
EXEC CICS STARTBR
FILE ("SOFILE")
RIDFLD (FILE-KEY-SO)
GTEQ
NOHANDLE
END-EXEC.

SOFILE file is containing the below value,

09200920010600000000009200106090000000000000000011FHA017009042009041120090414070
09200920010647212030209200106092000000047212030212009041410920000000000000000000
09200920285300000000009202853090000000000000000011FHD042767002009051620090518150
09200920285356233060109202853092000000056233060112009051810920000000000000000000
09200920416000000000009204160090000000000000000011FHA034589002009060220090603180
09200920416055713160209204160092000000055713160212009060410920000000000000000000
09200920523300000000009205233090000000000000000011FHA016234002009061520090616180

Could any one help me......
Back to top
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2501
Location: Atlanta, Georgia, USA

PostPosted: Wed Aug 05, 2009 4:15 pm
Reply with quote

If you initialize the key to all LOW-VALUES, the INVREQ should go away.

Optionally and as a failsafe, before issuing the STARTBR, issue an ENDBR NOHANDLE just in case a previous browse had been issued and an ENDBR had not been issued.

Also, always use a KEYLENGTH, in case the file ever becomes REMOTE.

Your System folks will appreciate this.

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

New User


Joined: 07 May 2009
Posts: 51
Location: Chennai

PostPosted: Wed Aug 05, 2009 4:35 pm
Reply with quote

Thanks for your valuable information Bill....
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts How to split large record length file... DFSORT/ICETOOL 10
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 Access to non cataloged VSAM file JCL & VSAM 18
No new posts Need help for File Aid JCL to extract... Compuware & Other Tools 23
Search our Forums:

Back to Top