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
 

 

Length error in LINK

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
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    Post subject: Length error in LINK
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

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7225

PostPosted: Wed Jun 29, 2011 4:37 pm    Post subject: Reply to: Length error in LINK
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: 2502
Location: Atlanta, Georgia, USA

PostPosted: Wed Jun 29, 2011 4:41 pm    Post subject: Reply to: Length error in LINK
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    Post subject:
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: 7908
Location: Bellevue, IA

PostPosted: Wed Jun 29, 2011 4:53 pm    Post subject:
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: 2502
Location: Atlanta, Georgia, USA

PostPosted: Wed Jun 29, 2011 4:53 pm    Post subject: Reply to: Length error in LINK
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    Post subject:
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: 2502
Location: Atlanta, Georgia, USA

PostPosted: Wed Jun 29, 2011 5:23 pm    Post subject: Reply to: Length error in LINK
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: 1219
Location: Israel

PostPosted: Wed Jun 29, 2011 5:48 pm    Post subject:
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: 1219
Location: Israel

PostPosted: Wed Jun 29, 2011 5:50 pm    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Wed Jun 29, 2011 8:10 pm    Post subject: Reply to: Length error in LINK
Reply with quote

Click here
http://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: 1219
Location: Israel

PostPosted: Thu Jun 30, 2011 2:10 pm    Post subject: Re: Reply to: Length error in LINK
Reply with quote

Quote:
Click here
http://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    IBMMAINFRAMES.com Support Forums -> CICS All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts S922 Error yuvan ABENDS & Debugging 3 Fri Dec 02, 2016 6:58 pm
No new posts Invoke Webservice Fails with DFHPI100... divated CICS 2 Thu Nov 24, 2016 5:57 pm
No new posts SQZ pipe delimited file with 1 column... Rick Silvers DFSORT/ICETOOL 2 Sun Nov 06, 2016 8:11 pm
No new posts Joinkeys operation when key1 and key2... Susanta DFSORT/ICETOOL 5 Wed Nov 02, 2016 5:35 pm
No new posts Error during restore rename archanamuthukrishnan All Other Mainframe Topics 2 Fri Oct 14, 2016 3:30 pm


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