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

Reason for INVREQ error in cics


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ritu

New User


Joined: 03 Aug 2006
Posts: 1

PostPosted: Thu Aug 03, 2006 4:33 pm
Reply with quote

Can please explain me the invreq error in foll situation:-

The return command with the Commarea option is specified in a program which is not at the highest level.

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

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Sun Aug 06, 2006 9:42 am
Reply with quote

From the fine manual:
Quote:
COMMAREA(data-area)
specifies a communication area that is to be made available to the
next program that receives control. In a COBOL receiving program, you
must give this data area the name DFHCOMMAREA. (See the CICS
Application Programming Guide for more information about the CICS
COMMAREA.) Because the data area is freed before the next program
starts, a copy of the data area is created and a pointer to the copy
is passed.

The communication area specified is passed to the next program that
runs at the terminal. To ensure that the communication area is passed
to the correct program, include the IMMEDIATE option.

This option is valid only on a RETURN command issued by a program at
the highest logical level, that is, a program returning control to
CICS.



O.
Back to top
View user's profile Send private message
kutty.r

New User


Joined: 22 Jun 2006
Posts: 24

PostPosted: Wed Sep 27, 2006 5:35 pm
Reply with quote

Invalied request occurs (AE13)

1, when we read an file with generic option and when we fail to specify an key length option .
2, start browse with an generic option . and issuing an read previous . ie we cant have an read previous on a file if u stare browse with an generic option
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Sun Oct 08, 2006 1:15 am
Reply with quote

OK, OK, I got it Kutty. icon_eek.gif
Back to top
View user's profile Send private message
Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1353
Location: Israel

PostPosted: Sun Oct 08, 2006 5:51 pm
Reply with quote

In addition to Ofer answer:
As far as I understand COMMAREA can be used only with TRANSID.
The diagram in the book implies it:
Code:

>>──RETURN──┬────────────────────────────────────────────────┬───────>
           └─TRANSID(name)──┬──────────────┬──┬───────────┬─┘   
                           └─┤ commarea ├─┘  └─IMMEDIATE─┘   


Also, you should check RESP2, it would give you the exact reason for the INVREQ.
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 -> Mainframe Interview Questions

 


Similar Topics
Topic Forum Replies
No new posts Using API Gateway from CICS program CICS 0
No new posts Error to read log with rexx CLIST & REXX 11
No new posts Error when install DB2 DB2 2
No new posts CLIST - Virtual storage allocation error CLIST & REXX 5
No new posts Reorg abended with REASON=X'00E40347' DB2 2
Search our Forums:

Back to Top