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
 

 

Please help with reference modification error I am getting.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
sunny_io

New User


Joined: 11 Jul 2007
Posts: 68
Location: noida

PostPosted: Thu Jan 10, 2008 9:42 pm    Post subject: Please help with reference modification error I am getting.
Reply with quote

Hi All

I have the following variables defined

--------------------------------------------------------------------

05 F4600-CARD-AREA-LL PIC S9(4) COMP-3.
05 F4600-CARD-AREA.
10 FILLER OCCURS 0 TO 8000 TIMES
DEPENDING ON F4600-CARD-AREA-LL
PIC X(1).
--------------------------------------------------------------------

01 F7600-CARD-DG.
05 F7600-ACTION PIC XX.
05 F7600-RESULT PIC XX.
05 F7600-CARD-AREA PIC X(80).

--------------------------------------------------------------------

code which dies down -------------



MOVE +1 TO F4600-CARD-AREA-LL
MOVE F7600-CARD-AREA TO
F4600-CARD-AREA (F4600-CARD-AREA-LL:
LENGTH OF F7600-CARD-AREA)

ADD LENGTH OF F7600-CARD-AREA TO
F4600-CARD-AREA-LL



-----------------------------------------
The above highlighted in blue gives me the following error

SSRANGE errors ...reference modification start position value of 1 and length value of 80 on line 003267 caused reference to
be made beyond the rightmost character of data item F4600-CARD-AREA.
From compile unit F870600 at entry point F870600 at compile unit offset +0000682A at entry offset +0000682A
at address 18BC682A.

I used display statement just before the move statement and saw that values in F4600-CARD-AREA-LL = 1 and in LENGTH OF F7600-CARD-AREA is 80 .. yet i have this error.. can't understand why .
pls help
Back to top
View user's profile Send private message

Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Thu Jan 10, 2008 9:48 pm    Post subject: Re: Please help with reference modification error I am getti
Reply with quote

sunny_io wrote:
Hi All

I have the following variables defined

--------------------------------------------------------------------

05 F4600-CARD-AREA-LL PIC S9(4) COMP-3.
05 F4600-CARD-AREA.
10 FILLER OCCURS 0 TO 8000 TIMES
DEPENDING ON F4600-CARD-AREA-LL
PIC X(1).
--------------------------------------------------------------------

01 F7600-CARD-DG.
05 F7600-ACTION PIC XX.
05 F7600-RESULT PIC XX.
05 F7600-CARD-AREA PIC X(80).

--------------------------------------------------------------------

code which dies down -------------



MOVE +1 TO F4600-CARD-AREA-LL
MOVE F7600-CARD-AREA TO
F4600-CARD-AREA (F4600-CARD-AREA-LL:
LENGTH OF F7600-CARD-AREA)

ADD LENGTH OF F7600-CARD-AREA TO
F4600-CARD-AREA-LL



-----------------------------------------
The above highlighted in blue gives me the following error

SSRANGE errors ...reference modification start position value of 1 and length value of 80 on line 003267 caused reference to
be made beyond the rightmost character of data item F4600-CARD-AREA.
From compile unit F870600 at entry point F870600 at compile unit offset +0000682A at entry offset +0000682A
at address 18BC682A.

I used display statement just before the move statement and saw that values in F4600-CARD-AREA-LL = 1 and in LENGTH OF F7600-CARD-AREA is 80 .. yet i have this error.. can't understand why .
pls help


If F4600-CARD-AREA-LL =1 then F4600-CARD-AREA is noly 1 byte long. Try moving 80 to F4600-CARD-AREA-LL first.
Back to top
View user's profile Send private message
trgk03

New User


Joined: 20 Jan 2006
Posts: 12
Location: kochi

PostPosted: Fri Jan 11, 2008 8:51 am    Post subject:
Reply with quote

F4600-CARD-AREA-LL cannot be defined as comp-3 in this case
Back to top
View user's profile Send private message
varunvasudevan

New User


Joined: 10 Jan 2008
Posts: 4
Location: Chennai

PostPosted: Fri Jan 11, 2008 10:02 am    Post subject:
Reply with quote

the size of the table u defined ie (F4600-CARD-AREA) depends on the value in F4600-CARD-AREA-LL because u r using DEPENDING ON claue with table declaration.nd u r moving + 1 to F4600-CARD-AREA-LL . so it is taking atable size as 1. u shoud have moved 80 insted of 1.
Back to top
View user's profile Send private message
sunny_io

New User


Joined: 11 Jul 2007
Posts: 68
Location: noida

PostPosted: Fri Jan 11, 2008 10:26 am    Post subject: Re: Thanks Craq , varun
Reply with quote

Hi all

Thanks a ton . The prob is solved

Sunny
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 -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts DB2 Program abending without giving a... rahulgarg14 DB2 3 Mon May 29, 2017 8:10 pm
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts IDC2902I Error tzeche ABENDS & Debugging 2 Tue Mar 28, 2017 11:39 am
No new posts Need help with below DB2 error ashek15 DB2 3 Sat Mar 18, 2017 5:56 am
No new posts FINDREP Syntax Error seahawk789 DFSORT/ICETOOL 4 Thu Mar 09, 2017 10:11 pm


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