Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Export to AS/400
Message
From
05/07/2000 07:23:56
 
 
To
05/07/2000 07:15:54
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00388255
Message ID:
00388258
Views:
14
Not too sure what you mean....

But You will see that if you connect to the AS400 with SQLCON()

handle=SQLCON()

You could then
a) Insert the data via SQLEXEC commands example:

lcsql="insert into test value('xccc')"
sqlexec(Handle,lcsql)

Otherwise more info is needed.

My point being simple construct sql statement taht pull the data from teh view and pouplate the as400 with this data.

Example

* View:
* Test
* col1 number
* col2 char

select test

go top

do while not eof()
var1=col1
var2=col2
lcsql="insert into test(col1,col2) values (?col1,?col2)"
SQLEXEC(handle,lcsql)
skip
enddo



b)
What we do is export the data from VFP into an XML document and then import it with the MQ Series application
This is because we need validaction on the fields that are inserted.
It is of course considerable work to setup.

Did you get any error messages?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform