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

Length error in LINK


IBM Mainframe Forums -> CICS
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
rashmirgowda

New User


Joined: 18 Jun 2008
Posts: 25
Location: india

PostPosted: Wed Jun 29, 2011 4:32 pm
Reply with quote

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
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Wed Jun 29, 2011 4:37 pm
Reply with quote

I've come over all deja vu....
Back to top
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2501
Location: Atlanta, Georgia, USA

PostPosted: Wed Jun 29, 2011 4:41 pm
Reply with quote

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
View user's profile Send private message
rashmirgowda

New User


Joined: 18 Jun 2008
Posts: 25
Location: india

PostPosted: Wed Jun 29, 2011 4:49 pm
Reply with quote

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
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8651
Location: Dubuque, Iowa, USA

PostPosted: Wed Jun 29, 2011 4:53 pm
Reply with quote

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
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2501
Location: Atlanta, Georgia, USA

PostPosted: Wed Jun 29, 2011 4:53 pm
Reply with quote

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
View user's profile Send private message
rashmirgowda

New User


Joined: 18 Jun 2008
Posts: 25
Location: india

PostPosted: Wed Jun 29, 2011 5:09 pm
Reply with quote

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
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2501
Location: Atlanta, Georgia, USA

PostPosted: Wed Jun 29, 2011 5:23 pm
Reply with quote

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
View user's profile Send private message
Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1353
Location: Israel

PostPosted: Wed Jun 29, 2011 5:48 pm
Reply with quote

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
View user's profile Send private message
Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1353
Location: Israel

PostPosted: Wed Jun 29, 2011 5:50 pm
Reply with quote

You should also get and show RESP2 value!

and please learn the difference between LINK and XCTL !!!
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10833
Location: italy

PostPosted: Wed Jun 29, 2011 8:10 pm
Reply with quote

Click here
ibmmainframes.com/viewtopic.php?t=55135&highlight=
Back to top
View user's profile Send private message
Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1353
Location: Israel

PostPosted: Thu Jun 30, 2011 2:10 pm
Reply with quote

Quote:
Click here
ibmmainframes.com/viewtopic.php?t=55135&highlight=

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! icon_exclaim.gif
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 -> CICS

 


Similar Topics
Topic Forum Replies
No new posts How can i link the RHDCSNON programa ... IDMS/ADSO 2
No new posts Inserting variable length into output... JCL & VSAM 2
No new posts dsnrexx fails without error message CLIST & REXX 9
No new posts writing into VSAM indexed tabl in PL1... PL/I & Assembler 8
No new posts SORT ERROR PARAMETER VALUE EXCEEDS M... DFSORT/ICETOOL 12
Search our Forums:

Back to Top