• Subject: Re: DB2 LSX
  • From: "Walter Scanlan" <wscanlan@xxxxxxxxxx>
  • Date: Fri, 22 Jun 2001 08:49:27 -0500


Dave,
     You didn't say if you wanted LSXLC or LSXODBC.

This is the sample I recommend to verify the connection if available.

Event Options:
  Option Public
  Uselsx "*lsxodbc"
Sub Initialize
     Dim con As New ODBCConnection
     Dim qry As New ODBCQuery
     Dim res As New ODBCResultSet

     con.autocommit=False
     If (con.connectto("remotesystem","user","password")) Then
          qry.sql ="select * from QIWS/QCUSTCDT"
          Set res.Query = qry
          Res.Execute
          Call Res.FirstRow
          Res.Close(Db_Close)
          Call con.disconnect
     End If
End Sub

Walter Scanlan
Advisory Software Engineer
Domino for AS/400 Team Leader
Internet wscanlan@us.ibm.com


                                                                                
                                         
                    DaveBednarcik@Wester                                        
                                         
                    nUnion.com                 To:     DOMINO400@midrange.com   
                                         
                    Sent by:                   cc:                              
                                         
                    owner-domino400@midr       Subject:     DB2 LSX             
                                         
                    ange.com                                                    
                                         
                                                                                
                                         
                                                                                
                                         
                    06/21/2001 04:54 PM                                         
                                         
                    Please respond to                                           
                                         
                    DOMINO400                                                   
                                         
                                                                                
                                         
                                                                                
                                         



I am trying to write to a DB2 file on the AS/400 using Lotus Script (DB2
LSX classes) but I am having no results.  Does anyone have any examples
that I could look at?

Thanks,

Dave Bednarcik
Email: DaveBednarcik@WesternUnion.com
Work #: (201)263-5186
Fax # : (201)263-5455

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




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

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.