Wrox Programmer Forums
|
Pro VB 6 For advanced Visual Basic coders working in version 6 (not .NET). Beginning-level questions will be redirected to other forums, including Beginning VB 6.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 18th, 2006, 10:51 AM
Registered User
 
Join Date: Jan 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Execute AS400 from VBA

Dear all,

I like to get VB or VBA code to execute query stored in AS/400. The objective is to execute multiple queries in AS/400 from VBA module in Excel environment without having to manually run the AS400 queries.

Any code example with explanation will be much appreciated.

One example I got was like:

cnAS400.Execute "{{QSYS/DSPFD FILE(*ALLUSR/QS36SRC) TYPE(*RCDFMT) " & _
"OUTPUT(*OUTFILE) OUTFILE(QS36F/S36LIBS)}}",0,adCmdText

I did not understand it or how to adopt to my own use.

My database: SOMPO1
library: RHSULIB
query: T0
output file: W0

Thanks again.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Execute Stored Procedure from VBA Romashka Access VBA 1 February 22nd, 2007 12:52 PM
connection.execute and command.execute difference vinod_yadav1919 Classic ASP Databases 0 September 28th, 2005 06:34 AM
conn.execute,command.execute or rs.open vinod_yadav1919 Crystal Reports 0 January 3rd, 2005 10:26 AM
Accessing AS400 DB2 Library thru Excel-VBA amjad_mahmood Excel VBA 0 January 3rd, 2005 08:37 AM
IBM AS400 + VB - retrieving AS400 file definitions gattsi Pro VB Databases 1 July 23rd, 2004 12:55 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.