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

Linkage section Data is getting lost


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

New User


Joined: 25 Feb 2006
Posts: 38
Location: chennai-india

PostPosted: Fri Aug 03, 2007 12:47 pm
Reply with quote

Hi all,

Linkage section Data is getting lost, can any one tell me the reason.

SITUATION:
In one program A, 01 level variable is populated with some values.
And in program B same 01 level is declared and address is set to that 01 variable the same value is present after some times its getting lost.

I Xped'd the programs and saw the data is present in both programs but after some times the data is getting lost in any one of the programs..

CODE IN BOTH PROGRAMS

02 WS-PLANBAR1 PIC S9(8) COMP.
02 WS-PLANBAR1-PTR REDEFINES
WS-PLANBAR1 POINTER.

01 PLAN-AREA.
COPY F575041M.
;;;
;;;;
;;;;;;
MOVE TCR-PLN-PROC-AREA TO WS-PLANBAR1.
SET ADDRESS OF PLAN-AREA TO WS-PLANBAR1-PTR.

What may be the reason for it....


Thanks in Advance.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Fri Aug 03, 2007 1:07 pm
Reply with quote

couple items to help in the diagnosis:
  1. in your description above, where do the DATA-DIV, WORKING-STORAGE, LOCAL, & LINKAGE for both modules fit?
  2. Is this E-COBOL or OS390?
    • If E-COBOL, are these module nested?
  3. What do your procedure division using statements look like?
  4. What does the transfer of control statement look like?
  5. what structure contains TCR-PLN-PROC-AREA and where is it defined?
Back to top
View user's profile Send private message
kapil_tv

New User


Joined: 02 Aug 2007
Posts: 3
Location: Pune

PostPosted: Fri Aug 03, 2007 1:46 pm
Reply with quote

Hi,

Might be you have not returned the program with the proper DFHCOMMAREA in the return statement.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Fri Aug 03, 2007 7:38 pm
Reply with quote

Hello,

I suspect the code has moved "something" over the value - one way or another.

When the data "gets lost" what is the "lost" content (i.e. after the good data goes away, what is in the fields)?
Back to top
View user's profile Send private message
Earl

Active User


Joined: 17 Jun 2007
Posts: 148
Location: oklahoma

PostPosted: Mon Aug 06, 2007 7:30 am
Reply with quote

the code above is just establishing addressability to data areas,

how are you getting data area from prog a" to prog b"

COMMAREA

TEMPSTORAGE

?? you really need to give a little more information, before can
be of much help.
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 Store the data for fixed length COBOL Programming 1
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts Data set Rec-Cnt and Byte-Cnt Testing & Performance 2
No new posts SCOPE PENDING option -check data DB2 2
No new posts Using Dynamic file handler in the Fil... COBOL Programming 2
Search our Forums:

Back to Top