View previous topic :: View next topic
|
Author |
Message |
rashmirgowda
New User
Joined: 18 Jun 2008 Posts: 25 Location: india
|
|
|
|
Hi,
I am facing length error 22 while doing link. i have declared variable of length (5869) under commarea in both the modules.
Please help me out.
Thanks,
Rashmi |
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
I've come over all deja vu.... |
|
Back to top |
|
|
Bill O'Boyle
CICS Moderator
Joined: 14 Jan 2008 Posts: 2501 Location: Atlanta, Georgia, USA
|
|
|
|
Is the variable defined as PIC S9(04) COMP/COMP-4/COMP-5/BINARY?
In other words, a signed binary halfword?
This is a common rookie mistake....
Bill |
|
Back to top |
|
|
rashmirgowda
New User
Joined: 18 Jun 2008 Posts: 25 Location: india
|
|
|
|
Hi Bill,
this is not a group variable as per you views. Im getting this error response during XCTL. So please advise for the error cause |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8700 Location: Dubuque, Iowa, USA
|
|
|
|
Quote: |
So please advise for the error cause |
Unless you post the exact CICS command (use the Code tag), we are not likely to help you since we would only be guessing.
This is especially true since the topic title refers to LINK yet your last post refers to XCTL. Since YOU do not have any idea what you are doing, just how do you expect us to have any idea? This is not psychic day. |
|
Back to top |
|
|
Bill O'Boyle
CICS Moderator
Joined: 14 Jan 2008 Posts: 2501 Location: Atlanta, Georgia, USA
|
|
|
|
You didn't answer the question.
Is the variable defined as a signed binary halfword, just like EIBCALEN?
EG:
Code: |
03 WS-COMM-LGTH PIC S9(04) COMP.
MOVE 5869 TO WS-COMM-LGTH.
|
Bill |
|
Back to top |
|
|
rashmirgowda
New User
Joined: 18 Jun 2008 Posts: 25 Location: india
|
|
|
|
Hi,
while trying to XCTL ProgramA, getting the resp code as "22".
Declared commarea as below
LINKAGE SECTION.
01 DFHCOMMAREA.
05 a pic x(10).
.
etc
I have used 5869 length in both the modules
while excuting the command, facing the error.
EXEC CICS XCTL
PROGRAM(ProgramA)
COMMAREA(DFHCOMMAREA)
LENGTH(LENGTH OF DFHCOMMAREA)
RESP (WS-CICS-RESP)
END-EXEC. |
|
Back to top |
|
|
Bill O'Boyle
CICS Moderator
Joined: 14 Jan 2008 Posts: 2501 Location: Atlanta, Georgia, USA
|
|
|
|
What is the group-level length of DFHCOMMAREA?
Are you using the same DFHCOMMAREA in both programs?
Have you walked this transaction through CEDF?
CEDF will display the commarea length prior to the XCTL as well as the commarea length after the XCTL has completed and you're in the XCTL'd program.
Bill |
|
Back to top |
|
|
Marso
REXX Moderator
Joined: 13 Mar 2006 Posts: 1353 Location: Israel
|
|
|
|
rashmirgowda wrote: |
Hi,
while trying to XCTL ProgramA, getting the resp code as "22".
Declared commarea as below
LINKAGE SECTION.
01 DFHCOMMAREA.
05 a pic x(10).
.
etc
I have used 5869 length in both the modules
while excuting the command, facing the error.
EXEC CICS XCTL
PROGRAM(ProgramA)
COMMAREA(DFHCOMMAREA)
LENGTH(LENGTH OF DFHCOMMAREA)
RESP (WS-CICS-RESP)
END-EXEC. |
You are sending to ProgramA your own DFHCOMMAREA, which is defined in your Linkage Section.
Did you receive this DFHCOMMAREA from somewhere ? |
|
Back to top |
|
|
Marso
REXX Moderator
Joined: 13 Mar 2006 Posts: 1353 Location: Israel
|
|
|
|
You should also get and show RESP2 value!
and please learn the difference between LINK and XCTL !!! |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10888 Location: italy
|
|
Back to top |
|
|
Marso
REXX Moderator
Joined: 13 Mar 2006 Posts: 1353 Location: Israel
|
|
|
|
I clicked here, then clicked here again, then got into an endless loop...
The only way out was to ipl myself.
You've been warned! |
|
Back to top |
|
|
|