Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » iSeries Connection(Connec to iSeries (AS/400) and run commands)
iSeries Connection [message #1000488] Mon, 14 January 2013 21:48
Antonio Felix is currently offline Antonio FelixFriend
Messages: 1
Registered: January 2013
Junior Member
If this is not the correct forum, i apolosige.

All i want to do is connect to my iseries, logon (of course), run a comand (like CRTLIB TESTING) and get the result message(s).

I have succefuly used:
VB, C, and C++, both on Windows and Linux (NOT VB of course), to run commands and APIs.
I have done some small java apps for android using Eclipse IDE.

I am and iSeries administrator and developer for over 15 years.

Now my company wants to move to Eclipse.

I have downloaded and installed the IBM Eclipse Developmente Package...
I have an Eclipse instalation with C, C++ and Java IDEs...

But still can't do a simple thing like connecting and logging on...
NOTE: I want to logon to the system, not connect to a database. That i can do (with JAVA).

With VB (the easiest) or C/C++ in windows i use the cwbx.dll and create an AS400 object.
Logon and issue commands or call APIs via .Command or .Run or .Call depending on the objective.

Example:
##########
Dim i5Sys = CreateObject("cwbx.AS400System")

i5Sys.IPAddress = IPADRESS
i5Sys.UserID = USERID
i5Sys.Password = USERPASSWORD

Try
i5Sys.Signon()
Catch ex As Exception
msgbox(ex.Message)
Return
End Try

CommandText = "CRTLIB TESTING"
CommandToRun.system = i5Sys
Try
CommandToRun.Run(Trim(CommandText))
Catch ex As Exception
msgbox(ex.Message)
return
End Try
##########

Can someone help me?

A tutorial would be great but any help is welcome...

Thank you.
A.Felix
Previous Topic:Help
Next Topic:Can't type double qoutes with OSK
Goto Forum:
  


Current Time: Thu Dec 18 21:14:10 GMT 2014

Powered by FUDForum. Page generated in 0.01759 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software