View previous topic :: View next topic
|
Author |
Message |
lakshmibala
New User
Joined: 16 Jun 2004 Posts: 47
|
|
|
|
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 |
|
Back to top |
|
|
sandip_datta
Active User
Joined: 02 Dec 2003 Posts: 150 Location: Tokyo, Japan
|
|
|
|
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 |
|
|
lakshmibala
New User
Joined: 16 Jun 2004 Posts: 47
|
|
|
|
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 |
|
|
sandip_datta
Active User
Joined: 02 Dec 2003 Posts: 150 Location: Tokyo, Japan
|
|
|
|
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 |
|
|
lakshmibala
New User
Joined: 16 Jun 2004 Posts: 47
|
|
|
|
hi sandip,
thanks for ur immediate response.
kindly tell me more about this
bye with regards ,
lakshmi |
|
Back to top |
|
|
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1592
|
|
|
|
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 |
|
|
lakshmibala
New User
Joined: 16 Jun 2004 Posts: 47
|
|
|
|
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 |
|
|
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1592
|
|
|
|
Kindly supply some documentation.
bye, Jack. |
|
Back to top |
|
|
muthukumar
New User
Joined: 24 Mar 2004 Posts: 29
|
|
|
|
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 |
|
|
|