PC Review


Reply
Thread Tools Rate Thread

call AS/400 program from ASP.Net

 
 
Kusno Doang
Guest
Posts: n/a
 
      24th Oct 2008
Dear all,

In our AS400 system, there is a program, 'PrgSend" located in MyLib library.
That program only reads from PF file that comes from FTP, "TMPData" and sends data to Real table.

I have the menu program with this command :

0001 RUNQRY *N TMPData
0002 call PrgSend
0003 WRKSPLF SELECT(*CURRENT *ALL *ALL PrgSend)
0009 s

In .Net, I only want call PrgSend to read PF file.
I create looping in a folder to read CSV files, than send those files use FTP and go to TMPData.
After that, .Net call PrgSend to send TMPData to Real table.

I tried these code in .Net :

Dim AS400Name As String = "110.114.30.02"
Dim AS400User As String = "AMIN"
Dim AS400Password As String = "Password"
Dim AS400Pgm = "PrgSend"
Dim AS400Lib = "MyLib"

Dim AS400 As New cwbx.AS400System
Dim program As New cwbx.Program

AS400.Define(AS400Name)

program.system = AS400
program.system.UserID = AS400User
program.system.Password = AS400Password

program.LibraryName = AS400Lib
program.ProgramName = AS400Pgm

AS400.Signon()
AS400.Connect(cwbcoServiceEnum.cwbcoServiceRemoteCmd)
program.Call()

But doesn't work. It was draweed in this code : AS400.Define(AS400Name)

So, could anyone help me to solve the problem ?

Thanks and Regards,

Kusno.
 
Reply With Quote
 
 
 
 
Jeff Johnson
Guest
Posts: n/a
 
      24th Oct 2008
<Kusno Doang> wrote in message news:(E-Mail Removed)...

> But doesn't work. It was draweed in this code : AS400.Define(AS400Name)


Could you rephrase that last statement? I don't understand it at all.

And what is the Define() method supposed to do?


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to call a procedure in program =?Utf-8?B?VmlqYXkgS290aWFu?= Microsoft Excel Programming 1 28th Mar 2007 05:06 AM
Call SAS program =?Utf-8?B?SG93YXJk?= Microsoft Access 1 14th Sep 2006 01:55 AM
Call Lisp Program from vb.net Hema Microsoft VB .NET 5 10th May 2006 09:27 AM
Call as400 program from VB.NET? Scott Johnson Microsoft VB .NET 1 23rd Jan 2004 02:01 AM
Call Program from URL Ryan Microsoft C# .NET 1 20th Nov 2003 03:55 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:56 PM.