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
 
error while setting the flag

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

New User


Joined: 12 Aug 2005
Posts: 32

PostPosted: Tue May 09, 2006 10:59 am    Post subject: error while setting the flag
Reply with quote

Hi,
I am facing the problem while setting the flag.. plz can any one help me.

situation is like: I am performing a para1 and in that para i am setting the

value of index variable to 1. but its giving the error

"The reference to table WS-JOURNAL-CORP-TABLE by verb number 01 on

line on line 004044 addressed an area outside the region of the

table."

i am performing the search operation after setting the flag.

thanks,

sandy
Back to top
View user's profile Send private message

elonics

New User


Joined: 05 Jul 2005
Posts: 49
Location: India

PostPosted: Tue May 09, 2006 12:12 pm    Post subject: Re: error while setting the flag
Reply with quote

Hai,

Did u declare the table 'WS-JOURNAL-CORP-TABLE' with INDEXED BY?

Usually the procedure for ur case is:

1) Delare the table with indexed by
WS-JOURNAL-CORP-TABLE OCCURS 1500 TIMES
INDEXED BY WS-INDX.
2) Perform a para where

a) SET WS-INDX TO 1.

b) SEARCH WS-JOURNAL-CORP-TABLE
AT END
you do what you need
WHEN WS-SOME-VAR = WS-JOURNAL-TBL-ID( WS-INDX )
MOVE 'Y' TO WS-SOME-FLAG
END-SEARCH.

Is this how you did in ur program?

Thanks,
Elonics.
Back to top
View user's profile Send private message
sandeep4u

New User


Joined: 12 Aug 2005
Posts: 32

PostPosted: Tue May 09, 2006 2:51 pm    Post subject: Re: error while setting the flag
Reply with quote

thanks

ya do the same thing....

actually it is giving me error when i am moving the value to the table...

i think ptr is set to second position i am trying to insert at first position..

i dont know why it is pointing to second one.....



any way thanks i have use another logic.


sandy
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 IEW2456E error when link-editing a C ... Senthilraj JCL & VSAM 0 Fri Oct 13, 2017 3:12 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
No new posts FUSE - IBM MQ - CICS integration error Kevin Vaz CICS 1 Mon Sep 18, 2017 4:31 pm
No new posts Setting Font Type for XMIT satish.ms10 All Other Mainframe Topics 3 Fri Sep 15, 2017 10:01 pm

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