473,320 Members | 1,881 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Add Records to an Iseries (AS/400) Server

Hi All,

I've gotten to the point where I can read records from our AS/400, but when
I write, it goes through the motions but does not write anything.

Here's my code to write to the AS/400:
Set rsADDPM = Server.CreateObject("ADODB.Recordset")
PNPLCD = request.querystring("pcode")
PNOPTNO = request.form("PNOPTNO")
PNOPTCL = request.form("PNOPTCL")
PNNPTNO = request.form("PNNPTNO")
PNNPTCL = request.form("PNNPTCL")
SQLaddpm = "insert into SPSL.VARPM_PF
(PNPLCD,PNOPTNO,PNOPTCL,PNNPTNO,PNNPTCL) values ('" &PNPLCD& "','" &PNOPTNO&
"','"&PNOPTCL& "','"&PNNPTNO& "','"&PNNPTCL& "')"
rsADDPM.open SQLaddpm, adoCon

Like I said, it goes through the motion and tells me it wrote something, but
when I check through the AS/400 sql intepreter, it doesn't display the
record I just added.

Do I have to commit the records somehow when I'm finished writing them? If
not, what should I add in the code to make it write?

Thanks!

Brian.
Jul 22 '05 #1
0 1107

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Rebecca | last post by:
I have an Access97 front end using ODBC to communicate with an SQLServer 7.0 back end on a different machine. Most of the work I do in the front end uses forms bound to linked tables that reside...
3
by: Luqman | last post by:
Will ASP.Net Applications run on IBM AS/400 Server? Best Regards, Luqman
1
by: syedrafey | last post by:
Hello, One of datagrid on my aspx page is not showing records on production server while there are records in database table. I have tested that page on my local machine and it is working fine....
0
by: kenjichanhkg | last post by:
I can't understand why my session data is cleared whenever I insert records to SQL server. I can see that the session is still the same one but my session variables just disappear. Does anyone...
0
by: sam117 | last post by:
Help me ! To choose n any random records in SQL server, how must i do ? Please!!!!!!!!!!! Thanks!
3
by: ebru | last post by:
about insert/delete/update records in mysql server with asp code how can I insert record in mysql database.. I insert into database but if I leave one text box empty, its give me error how can...
1
by: hilal84 | last post by:
Hi, I have a problem on updating some records on sql server 2005. I can update the records in the table apart from some records. Records are added to table by a .net application. When I try to...
0
by: shilpa.vastrad | last post by:
how to calculate rank in selected records in sql server 2000
0
by: patakamuri sai | last post by:
How to display the records from sql server in textboxes by using ASP.Net with c#
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.