× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.


  • Subject: Re: Embedded SQL and Remote D-Base Connectivity
  • From: bellis@xxxxxxxxxxxx
  • Date: Wed, 26 Apr 2000 13:51:46 -0500



Rob,
At the bottom of this message is an excerpt that came directly out of the DB2
for AS/400 SQL Programming V4R3 manual.
The way I read this is that the package is to be created on the remote database
that is specified in the RDB parameter.
I finally got it to work where it actually does create the package on the remote
 d-base.
I was trying to compile it as a *module object and needed it to created it as a
*pgm object.
What I need to know is do we absolutely have to have the package created to get
this to work?


24.3 SQL Package Support
The OS/400 program supports an object called an SQL package. (OS/400 object type
 is *SQLPKG.) The SQL
package contains the control structures and access plans necessary to process
SQL statements on the
application server when running a distributed program. An SQL package can be
created when:

  The RDB parameter is specified on the CRTSQLxxx command and the program object
 is successfully
    created. The SQL package will be created on the system specified by the RDB
parameter.

    If the compile is unsuccessful or the compile only creates the module
object, the SQL package will not be
    created.

Thanks,
Brian Ellis.








Rob Berendt <rob@dekko.com> on 04/26/2000 08:59:40 AM

Please respond to RPG400-L@midrange.com
                                                                                
                                                                                
                                                                                


                                                              
                                                              
                                                              
 To:      RPG400-L@midrange.com                               
                                                              
 cc:      (bcc: Brian Ellis/OTC)                              
                                                              
                                                              
                                                              
 Subject: Re: Embedded SQL and Remote D-Base Connectivity     
                                                              








It ain't going to happen with the CRTSQLRPGI command.
Think about it.  Let's say you're a software developer
designing a package to be distributed.  Having it create
the SQL package with the compile command would make little
sense, especially with the CONNECT to statement is probably
going to parameter driven.

Before we delve any deeper let's try the following.
On the local machine:
STRSQL
connect to S1025Y8M
select * from rmtlib/rmtfile

And see if that works.  Then we'll see if it is a program
issue.

You did do the WRKRDBDIRE on both machines did you?  And,
you did add the *LOCAL on both, right?





+---
| This is the RPG/400 Mailing List!
| To submit a new message, send your mail to RPG400-L@midrange.com.
| To subscribe to this list send email to RPG400-L-SUB@midrange.com.
| To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.