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

how to rectify XREF error


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
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
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: 150
Location: Tokyo, Japan

PostPosted: Wed Jul 28, 2004 8:56 am
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
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: 150
Location: Tokyo, Japan

PostPosted: Wed Jul 28, 2004 11:27 am
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
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
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
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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts IEW2315E 1369 Link error All Other Mainframe Topics 3
No new posts Help on IMS -API URL migrating from P... IMS DB/DC 1
No new posts JES datasets IO Error ABENDS & Debugging 3
No new posts Error to invoke MPP program through B... IMS DB/DC 3
No new posts PKZIP error ZPFM121E and ZPCE009E JCL & VSAM 6
Search our Forums:

Back to Top