Q
Problem solve Get help with specific problems with your technologies, process and projects.

Execute an RPG/COBOL OBJ from Java

How can I call and execute an RPG/COBOL OBJ from Java?

Here's a sample code:

   // Create an AS400 object. 
     AS400 sys = new AS400("mySystem.myCompany.com"); 
     // Create a command call object 
     CommandCall cmd1 = new CommandCall(sys,"CALL PGMLIB/PGM"); 
     // Make the call 
     cmd1.run(); 

==================================
MORE INFORMATION ON THIS TOPIC
==================================

The Best Web Links: tips, tutorials and more.

Ask your systems management questions--or help out your peers by answering them--in our live discussion forums.


This was last published in July 2002

Dig Deeper on RPG iSeries programming

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchDataCenter

Close