View previous topic :: View next topic
|
Author |
Message |
ritu
New User
Joined: 03 Aug 2006 Posts: 1
|
|
|
|
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 |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
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 |
|
|
kutty.r
New User
Joined: 22 Jun 2006 Posts: 24
|
|
|
|
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 |
|
|
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1592
|
|
|
|
OK, OK, I got it Kutty. |
|
Back to top |
|
|
Marso
REXX Moderator
Joined: 13 Mar 2006 Posts: 1353 Location: Israel
|
|
|
|
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 |
|
|
|