|
Maybe you ripped out too much code from the sample. Backtrack to the point you had it working and try again. Also, what OS/400 version are you at and what version of CA/400 Express ? I am using the V5R3 version currently. Although that should not really be an issue since you did have it working :-) Also you need to put in parameter markers when passing parms. Regards, Richard Schoen RJS Software Systems Inc. "Providing Your....iNFORMATION NOW!" Email: richard@xxxxxxxxxxxxxxx Web Site: http://www.rjssoftware.com Tel: (952) 898-3038 Fax: (952) 898-1781 Toll Free: (888) RJSSOFT ---------------------------------------------------------------------- message: 1 date: Wed, 21 Feb 2007 14:23:18 -0600 from: "Bob O." <otis_the_cat@xxxxxxxxxxx> subject: Re: Call iSeries program from C# program I checked out the article. I successfully got his little program to work (using the system console like he did). I added the code to my project (a windows application) and it would error out on calling the program. I removed all the parameters since the program I'm trying to call doesn't have any. OleDbCommand cmd = new OleDbCommand("{{call dortest.OR195}}", cn); I got the error: Value 'DORTES.OR' for PGM exceeds 10 characters. If I add () to the command OleDbCommand cmd = new OleDbCommand("{{call dortest.OR195()}}", cn); I get the error: Keyword 'DORTEST.OR' not valid for this command. Now why would just taking out the console.write stuff and the un-needed parms cause such a problem?
As an Amazon Associate we earn from qualifying purchases.
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.