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
 

 

Binding even though there is no DB2-SQL statement

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: Binding even though there is no DB2-SQL statement
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Thu Jan 07, 2010 7:07 pm    Post subject: Reply to: COBOL Query
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    Post subject: COBOL Query
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: 7913
Location: Bellevue, IA

PostPosted: Thu Jan 07, 2010 7:25 pm    Post subject:
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    Post subject: COBOL Query
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Thu Jan 07, 2010 8:01 pm    Post subject: Reply to: COBOL Query
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Thu Jan 07, 2010 8:10 pm    Post subject: Reply to: COBOL Query
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    Post subject: COBOL Query
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    Post subject: COBOL Query
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Thu Jan 07, 2010 8:25 pm    Post subject: Reply to: COBOL Query
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    Post subject: COBOL Query
Reply with quote

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

Senior Member


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

PostPosted: Thu Jan 07, 2010 8:43 pm    Post subject:
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    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 -913/-911 Deadlock during UPDATE stat... NoSleep319 DB2 5 Fri Nov 18, 2016 12:37 am
No new posts COBOL DB2 - CALL statement - high CPU... TS70363 DB2 15 Sun Sep 11, 2016 6:07 am
No new posts Converting NULL column into NOT NULL ... Raghu navaikulam DB2 5 Sat Aug 06, 2016 3:45 pm
This topic is locked: you cannot edit posts or make replies. Updating value of key using rewrite s... ParminderKumar COBOL Programming 4 Thu Aug 04, 2016 12:46 am
No new posts -419 SQL error when binding senthamizh DB2 2 Sun Jun 12, 2016 8:20 pm


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