Difference between revisions of "AS400 Action"

From PresenceWiki
Jump to: navigation, search
(Command)
(Check File Exists)
Line 91: Line 91:
  
 
Return Column Name
 
Return Column Name
 +
 +
http://www.international-presence.com/images/docs/as400/as400_programcall.png
 +
 +
http://www.international-presence.com/images/docs/as400/as400_programcall.png

Revision as of 16:05, 9 November 2010

http://www.international-presence.com/images/docs/as400/as400_action_header.png

AS400 Action Node

The purpose of this Node is to interact with the iSeries / AS400, for which you will need the hostname of the as400 (or ip address) along with a valid username and password.

The supported actions are:

Read Data Area

This is perhaps the simplest action available on the AS400 Actions list.

Select "Read Data Area" from the "Type of Request" drop down,

Then edit the Library Name,Object Name,Member Name and Member Type to specify the Data Area that is to be read.

Finally the Return Column Name specifies the Column Name to be created in the Presence Datatable into which the data value will be put.

As an example the following Read Data Area action:-

http://www.international-presence.com/images/docs/as400/as400_readdataarea.png

Results in this Datatable:-

http://www.international-presence.com/images/docs/as400/as400_readdataarea_results.png

Program Call

This action can be used to call a Program on the AS400, passing into it parameters and receiving returned parameters.

It requires Library and a Program followed by a List of Parameters

These contain a Param value and if the parameter is to be altered by the program a Return Param name, Type and Length

We can add or remove extra parameters.

http://www.international-presence.com/images/docs/as400/as400_programcall.png

Once you've set the parameters, you can go to the test tab and hit 'Test The Action'

The output tab will let you know if anything went wrong such as the wrong number or type of parameters being passed to the call.

http://www.international-presence.com/images/docs/as400/as400_output.png

The results tab will again give you the data returned by the action

http://www.international-presence.com/images/docs/as400/as400_results.png

Program Call Via A Command

This is a simplified version of Program Call, and requires Library, Program and a list of Parameters

It effectively runs the command:-

Call LIBRARY/PROGRAM PARM('p1','p2')

Once again extra parameters can be added or removed.

As such, it can't return parameter values, or set parameter types.

Command

Library Command Parameters containing Key and Value

Run the command

LIBRARY/COMMAND key1(value1) key2(value2)

Once again extra parameters can be added or removed.

Copy File

From

To

Return Column Name

Check File Exists

File

Return Column Name

http://www.international-presence.com/images/docs/as400/as400_programcall.png

http://www.international-presence.com/images/docs/as400/as400_programcall.png