Getting Error INVREQ while reading records from VSAM-RRDS



Help for IBM's record-oriented filesystem VSAM, ESDS, KSDS, RRDS, LDS and Storage management Subsystems

Getting Error INVREQ while reading records from VSAM-RRDS

Postby RaviTejaG » Fri May 21, 2010 3:43 pm

Hi,
i am getting INVREQ error while reading a record from VSAM-RRDS.i am pasting the code below,

EXEC CICS READ
FILE('FT0391')
INTO(WS-CUST-REC)
RIDFLD(WS-CUSTID)
KEYLENGTH(WS-KEY-LEN)
RESP(WS-RESP)
GTEQ
END-EXEC .
AND ALSO I WANT SYNTAXES FOR ALL KSDS OPERATIONS.CAN ANY ONE HELP ME.
RaviTejaG
 
Posts: 1
Joined: Fri May 21, 2010 3:38 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Getting Error INVREQ while reading records from VSAM-RRDS

Postby enrico-sorichetti » Fri May 21, 2010 3:56 pm

AND ALSO I WANT SYNTAXES FOR ALL KSDS OPERATIONS.CAN ANY ONE HELP ME.

RTFM
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico-sorichetti
Global moderator
 
Posts: 3006
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 165 times

Re: Getting Error INVREQ while reading records from VSAM-RRDS

Postby Robert Sample » Fri May 21, 2010 5:06 pm

This is not a manual regurgitation service. Learn to find the manuals on your own, read them, and THEN if you have any questions about what you read post them. INVREQ on a READ has a number of possible reasons. It is your responsibility to figure out which of these applies (from the CICS Language Reference manual):
INVREQ
RESP2 values:

20
READ is not allowed according to the file entry specification in the FCT.

A READ command with the UPDATE option is issued to a file where update operations are not allowed according to the file entry specification in the FCT.

25
The KEYLENGTH and GENERIC options are specified, and the length specified in the KEYLENGTH option is greater than or equal to the length of a full key.

26
The KEYLENGTH option is specified (but the GENERIC option is not specified), and the specified length does not equal the length defined for the data set to which this file refers.

28
Following a READ UPDATE command without TOKEN, another READ UPDATE without TOKEN was issued against the same file without an intervening REWRITE, DELETE, UNLOCK or SYNCPOINT command. This condition may in some cases be raised despite the fact that the first READ UPDATE was not successful, for example because it timed out.

40
A BDAM key conversion error occurred.

42
The KEYLENGTH and GENERIC options are specified, and the length specified in the KEYLENGTH option is less than zero.

44
The command does not conform to the format of READ for a user-maintained or coupling facility data table; for example, if RBA is specified.

51
A READ to a KSDS file that is being accessed in RLS mode specifies the RBA keyword. RLS mode does not support relative byte address access to KSDS data sets.

52
CONSISTENT is specified on a READ request to a non-RLS mode file, or to a data table that is specified with RLSACCESS(YES). CONSISTENT is not allowed if the file refers to a data table, even if the file definition specifies RLSACCESS(YES).

53
REPEATABLE is specified on a READ request to a non-RLS mode file or to a data table that is specified with RLSACCESS(YES). REPEATABLE is not allowed if the file refers to a data table, even if the file definition specifies RLSACCESS(YES).

55
NOSUSPEND is specified on a READ request to a non-RLS mode file or to a data table that is specified with RLSACCESS(YES). NOSUSPEND is not allowed if the file refers to a data table, even if the file definition specifies RLSACCESS(YES).

56
An attempt to update a recoverable coupling facility data table has failed because the current unit of work has already updated 1024 recoverable coupling facility data tables. You cannot update more than 1024 recoverable coupling facility data tables within a unit of work

Default action: terminate the task abnormally.
Robert Sample
Global moderator
 
Posts: 3720
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 279 times


Return to VSAM/SMS

 


  • Related topics
    Replies
    Views
    Last post