Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

db2 prep and nested exec sql
Hello there,

I have the following code snipplet

EXEC SQL
INCLUDE VMT002RS
END-EXEC
WHERE VMID      = :HV-VMID    AND
TGNR      = :HV-TGNR    AND
:HV-T-DATUM BETWEEN GDVON_D AND GDBIS_D
END-EXEC.

VMT002RS contains the select statement and the into clause like select
bla from tablex info :hv-bla. This compiles fine if I use the MF/cob-
compiler and the "included" interface to the DB2 preprocessor. But
when using the DB2 prep standalone the generated cobol code is not ok.
It still includes the WHERE. Can somebody help me out there. Maybe it
is just a compiler switch but I cannot find it. I cannot change the
source because nearly every programm uses this. Normally we use the MF-
Compiler. But right now we have a database performance problem and I
want to eliminate side effects.

Thanks in advance.

Michael

Report this thread to moderator Post Follow-up to this message
Old Post
michael.bierenfeld@web.de
01-31-08 08:55 AM


Re: DB2 prep and nested exec sql
You might want to post this also to comp.databases.ibm-db2.

n 1/31/2008 at 2:11 AM, in message
<e0cad07e-60c6-40b8-a918-ca3f2f846292@d21g2000prf.googlegroups.com>,
michael.bierenfeld@web.de<michael.bierenfeld@web.de> wrote:
> Hello there,
>
> I have the following code snipplet
>
>            EXEC SQL
>               INCLUDE VMT002RS
>            END-EXEC
>                 WHERE VMID      = :HV-VMID    AND
>                       TGNR      = :HV-TGNR    AND
>                       :HV-T-DATUM BETWEEN GDVON_D AND GDBIS_D
>            END-EXEC.
>
> VMT002RS contains the select statement and the into clause like select
> bla from tablex info :hv-bla. This compiles fine if I use the MF/cob-
> compiler and the "included" interface to the DB2 preprocessor. But
> when using the DB2 prep standalone the generated cobol code is not ok.
> It still includes the WHERE. Can somebody help me out there. Maybe it
> is just a compiler switch but I cannot find it. I cannot change the
> source because nearly every programm uses this. Normally we use the MF-
> Compiler. But right now we have a database performance problem and I
> want to eliminate side effects.
>
> Thanks in advance.
>
> Michael

Report this thread to moderator Post Follow-up to this message
Old Post
Frank Swarbrick
01-31-08 11:56 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Cobol archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 05:38 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.