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
 

 

Reason for INVREQ error in cics

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions
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    Post subject: Reason for INVREQ error in cics
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: 2360
Location: Israel

PostPosted: Sun Aug 06, 2006 9:42 am    Post subject:
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    Post subject: Re: Reason for INVREQ error in cics
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    Post subject:
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: 1224
Location: Israel

PostPosted: Sun Oct 08, 2006 5:51 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts OO COBOL compile error Virendra Shambharkar COBOL Programming 3 Tue Jan 10, 2017 6:05 pm
No new posts INDEPENDENT CICS TS 4.1 MRO REGION UP... Kyle Carroll CICS 0 Wed Dec 14, 2016 6:55 pm
No new posts CICS START AND CANCEL blayek CICS 1 Wed Dec 07, 2016 3:27 am
No new posts S922 Error yuvan ABENDS & Debugging 3 Fri Dec 02, 2016 6:58 pm
No new posts How does a called pgm know if its cal... Graeme Westerman COBOL Programming 4 Tue Nov 29, 2016 9:25 pm


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