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
 

 

how to rectify XREF error

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

New User


Joined: 16 Jun 2004
Posts: 47

PostPosted: Tue Jul 27, 2004 4:13 pm    Post subject: how to rectify XREF error
Reply with quote

hi all,

when i call a program statically , i get maxcc=0 when i compile my subprg,but when i compile my mainprg i get xref error.

how to rectify this error and what is the reason for this error?

this was an interview question .

kindly help me out.

bye

lakshmi icon_lol.gif
Back to top
View user's profile Send private message

sandip_datta

Active User


Joined: 02 Dec 2003
Posts: 151
Location: Tokyo, Japan

PostPosted: Wed Jul 28, 2004 8:56 am    Post subject:
Reply with quote

I think the problem is in compiler option DYNAM/ NODYNAM though not sure. If the code is available, then we can conclude.

Regards,
Sandip.
Back to top
View user's profile Send private message
lakshmibala

New User


Joined: 16 Jun 2004
Posts: 47

PostPosted: Wed Jul 28, 2004 11:22 am    Post subject: Re: rectifying xref error
Reply with quote

hi sandip,

actually the same code when i do it for dynamic call i get the answer.
but when i call the same prg statically i get the xref error when compiling the main prg itself.
we give those dynam/nodynam options only when we execute the prg and not when we compile it- i suppose .

first could u please tell me what is XREF?

and then how to rectify that error

bye with regards,

lakshmi
Back to top
View user's profile Send private message
sandip_datta

Active User


Joined: 02 Dec 2003
Posts: 151
Location: Tokyo, Japan

PostPosted: Wed Jul 28, 2004 11:27 am    Post subject:
Reply with quote

We give compiler option during compile time only and not in run time. So you have to put CBL DYNAM/NODYNAM at the top of your cobol program or specify it in compile JCL.
We do not get XREF(Cross reference) but get a particular Abend code which actually comed to Cross reference.
I am searching for more details. Will keep you updated.

Regards,
Sandip.
Back to top
View user's profile Send private message
lakshmibala

New User


Joined: 16 Jun 2004
Posts: 47

PostPosted: Wed Jul 28, 2004 11:40 am    Post subject: Re: rectifying xref error
Reply with quote

hi sandip,

thanks for ur immediate response.

kindly tell me more about this

bye with regards ,

lakshmi
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Thu Jul 29, 2004 10:04 pm    Post subject:
Reply with quote

This sounds like a Linkage Editor problem to me. I'm confused by your comments that:

1) You get an maxcc=0...
2) This is an interview ques...

How are the 2 comments connected? Can you show us some ACTUAL listings from the "compile" that show the error(s) you cite?

Regards, Jack.
Back to top
View user's profile Send private message
lakshmibala

New User


Joined: 16 Jun 2004
Posts: 47

PostPosted: Fri Jul 30, 2004 12:26 pm    Post subject: Re: rectifying xref error
Reply with quote

hi jack,

actually the interviewer asked me the same problem i faced and he asked me how to rectify

kindly tell me how to rectify,


bye

lakhmi
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Fri Jul 30, 2004 9:12 pm    Post subject:
Reply with quote

Kindly supply some documentation.

bye, Jack.
Back to top
View user's profile Send private message
muthukumar

New User


Joined: 24 Mar 2004
Posts: 29

PostPosted: Wed Sep 01, 2004 3:12 pm    Post subject:
Reply with quote

Hi,

Kindly check whether LIB option is included in the COBOL compiler parm list....I guess this also creates the problem specified.

I didnt check it..

regards
Muthu
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 OO COBOL compile error Virendra Shambharkar COBOL Programming 3 Tue Jan 10, 2017 6:05 pm
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 Error during restore rename archanamuthukrishnan All Other Mainframe Topics 2 Fri Oct 14, 2016 3:30 pm
No new posts Error IEC161I 052(009,XXXRS00)-084 wh... amitc23 JCL & VSAM 10 Wed Oct 12, 2016 5:00 pm


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