View previous topic :: View next topic
|
Author |
Message |
arun nehra
New User
Joined: 29 Nov 2008 Posts: 62 Location: mumbai
|
|
|
|
Hi,
I am working on a COBOL DB2 program where i have removed DB2 from the existing program. When i try to compile this module it gives me compilation error, that say unsucessful bind; This is happenning even when i have changed the program name too.
Why the program is going for binding even though there is no DB2-SQL statement present in it.
Please Help.
Regards |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10886 Location: italy
|
|
|
|
because You are using a process/procedure designed for db2!
ask Your support for the proper procedure to use for non DB2 programs |
|
Back to top |
|
|
arun nehra
New User
Joined: 29 Nov 2008 Posts: 62 Location: mumbai
|
|
|
|
I don't think there is any different setup/process required for it. I already made my changes by taking a reference of Normal COBOL program which does not make use of either DB2 or DLI. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8700 Location: Dubuque, Iowa, USA
|
|
|
|
is there any error message produced? If so, what does it say -- exactly? |
|
Back to top |
|
|
arun nehra
New User
Joined: 29 Nov 2008 Posts: 62 Location: mumbai
|
|
|
|
Hi,
Actually i am able to copile the code successfully now. The only changes that i have made now are i removed (deleted) revision history and initial description. These para's although were commented (as usual) but had key words like DB2/SQL and an earlier DB2 table name(that i have removed now).
Can any one suggest me why it happen?.
Regards |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10886 Location: italy
|
|
|
|
Quote: |
Why the program is going for binding even though there is no DB2-SQL statement present in it. |
again see my first reply
Quote: |
I don't think there is any different setup/process required for it. I already made my changes by taking a reference of Normal COBOL program which does not make use of either DB2 or DLI. |
well... Your way of thinking is wrong,
if You had made the proper changes, or used the proper procedures You would not have faced the issue!
the processes are quite different ... ( and for CICS an additional preprocessing step should be added)
plain cobol...
compile
link
cobol DL/i-IMS
compile
link ==> including the proper dl/i-IMS stub
cobol DB2
precompile/preprocess
compile
link ==> including the proper DB2 stub
bind |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10886 Location: italy
|
|
|
|
Quote: |
Can any one suggest me why it happen?. |
NO, we cannot tell because we know nothing about Your environment
are You using some kind of managed environment / tool for the developing process
some of them use data inside COBOL<any language supported> comment statements to find out about
the characteristics and environment of a source program |
|
Back to top |
|
|
arun nehra
New User
Joined: 29 Nov 2008 Posts: 62 Location: mumbai
|
|
|
|
Still i am in doubt how comments(revision history or description) can affect the way a program being compiled. |
|
Back to top |
|
|
arun nehra
New User
Joined: 29 Nov 2008 Posts: 62 Location: mumbai
|
|
|
|
We use Panvalet Library for developing/keeping ouR COBOL modules. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10886 Location: italy
|
|
|
|
instead of useless speculation, why do not You answer the questions You are asked?
do You have some king of automated process for the compilations??
if Yes ask Your support about it...
if not the process as exposed in my previous post depends only on the jcl You use
the bind does not take place by itself, a jcl step must be run,
and the content of the program can not influence the jcl being executed |
|
Back to top |
|
|
arun nehra
New User
Joined: 29 Nov 2008 Posts: 62 Location: mumbai
|
|
|
|
Thanx for your advise!!! |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6248 Location: Mumbai, India
|
|
|
|
Ask your Support/peers, period.
PS. Please don't give us riddles without any clues... |
|
Back to top |
|
|
|