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: 1228
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 Job failing with USER = 4093 REASON C... Pradeepa S ABENDS & Debugging 1 Wed May 17, 2017 3:35 pm
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts CICS Transaction Timeout Hooman24 CICS 2 Sun Apr 16, 2017 2:16 pm
No new posts IDC2902I Error tzeche ABENDS & Debugging 2 Tue Mar 28, 2017 11:39 am
No new posts Date and time format in CICS Chandru3183 CICS 2 Sat Mar 18, 2017 12:46 pm


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