Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 7315

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: 2504
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: 8187
Location: East Dubuque, Illinois, USA

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: 2504
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: 2504
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: 1247
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: 1247
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: 10350
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: 1247
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 -502 Error - Cursor already open anand jeyapaul DB2 7 Sun Oct 29, 2017 4:22 am
No new posts IEW2456E error when link-editing a C ... Senthilraj JCL & VSAM 0 Fri Oct 13, 2017 3:12 pm
No new posts sort records based on length exceeds ... maxsubrat DFSORT/ICETOOL 7 Wed Oct 04, 2017 4:48 pm
No new posts FTP Skip or ignore error and process ... AJAYREDDY All Other Mainframe Topics 3 Wed Sep 27, 2017 8:12 pm
No new posts Assembler Macro Copybook converted to... Ziquilix PL/I & Assembler 4 Tue Sep 26, 2017 3:07 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us