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

Binding even though there is no DB2-SQL statement


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
arun nehra

New User


Joined: 29 Nov 2008
Posts: 62
Location: mumbai

PostPosted: Thu Jan 07, 2010 6:53 pm
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10833
Location: italy

PostPosted: Thu Jan 07, 2010 7:07 pm
Reply with quote

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
View user's profile Send private message
arun nehra

New User


Joined: 29 Nov 2008
Posts: 62
Location: mumbai

PostPosted: Thu Jan 07, 2010 7:14 pm
Reply with 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.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8651
Location: Dubuque, Iowa, USA

PostPosted: Thu Jan 07, 2010 7:25 pm
Reply with quote

is there any error message produced? If so, what does it say -- exactly?
Back to top
View user's profile Send private message
arun nehra

New User


Joined: 29 Nov 2008
Posts: 62
Location: mumbai

PostPosted: Thu Jan 07, 2010 7:59 pm
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10833
Location: italy

PostPosted: Thu Jan 07, 2010 8:01 pm
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10833
Location: italy

PostPosted: Thu Jan 07, 2010 8:10 pm
Reply with quote

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
View user's profile Send private message
arun nehra

New User


Joined: 29 Nov 2008
Posts: 62
Location: mumbai

PostPosted: Thu Jan 07, 2010 8:17 pm
Reply with quote

Still i am in doubt how comments(revision history or description) can affect the way a program being compiled.
Back to top
View user's profile Send private message
arun nehra

New User


Joined: 29 Nov 2008
Posts: 62
Location: mumbai

PostPosted: Thu Jan 07, 2010 8:23 pm
Reply with quote

We use Panvalet Library for developing/keeping ouR COBOL modules.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10833
Location: italy

PostPosted: Thu Jan 07, 2010 8:25 pm
Reply with quote

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
View user's profile Send private message
arun nehra

New User


Joined: 29 Nov 2008
Posts: 62
Location: mumbai

PostPosted: Thu Jan 07, 2010 8:43 pm
Reply with quote

Thanx for your advise!!!
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Thu Jan 07, 2010 8:43 pm
Reply with quote

Ask your Support/peers, period.

PS. Please don't give us riddles without any clues... icon_biggrin.gif
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 JOIN STATEMENT PERFORMANCE. DFSORT/ICETOOL 10
No new posts Relate COBOL statements to EGL statement All Other Mainframe Topics 0
No new posts process statement for SUPREC, CMPCOLM... TSO/ISPF 4
No new posts SYNCSORT/ICETOOL JOINKEYS SORT Statem... DFSORT/ICETOOL 13
No new posts DFDSS COPY using Filter REFDT statement JCL & VSAM 2
Search our Forums:

Back to Top