AS/400 Adapter 6.0.1 | webMethods AS/400 Adapter Documentation | webMethods AS/400 Adapter Installation and User’s Documentation | Built-in Services | Access Services | wm.as400.access:callCommand
 
wm.as400.access:callCommand
Calls an iSeries batch command. This service allows the users to call a non-interactive iSeries command.
Input Parameters
$AS400Alias
String The connection alias of the AS/400 server.
$AS400
com.ibm.as400.access.AS400 Optional. A connected AS/400 object.
Note:
Either $AS400 or $AS400Aliasshould be provided as an input.
commandName
String The command to run on the server. If the command is not library qualified, the Server library list will be used to find the command.
Example:
CRTLIB
Note:
If command is not in the Server library list then use the libraryName field to specify the command library else the commandName field should contain the fully qualified integrated file system path name of the command.
Example:
/QSYS.LIB/myLibrary.LIB/myCommand.CMD)
libraryName
String Optional. The library in which the command exists. It must be 1 to 10 characters.
Note:
Use this field only if the command is not in the Server library list and the commandName does not contain the fully qualified integrated file system name for the command.
If you specify libraryName as %ALIAS_CURLIB% then the library name specified as the Current library while configuring the connection alias will be used.
Note:
You cannot specify %ALIAS_CURLIB% if the field $AS400Alias is empty.
isThreadSafe
String Set to true if the command should be assumed to be thread-safe on the server, else set to false.
InputParameters
Record Optional. Specifies the input fields (Name/Value Pair) for this command as follows:
*Name. The name of the input field, for example, LIB.
*Value. The value of the input field, for example, MYLIB.
additional Parameters
Record Optional. Specifies the advanced input fields (Name/Value Pair) for this command as follows:
*Name. The name of the input field, for example, AUT.
*Value. The Value of the input field, for example, *LIBCRTAUT.
Output Parameters
Success
String The status of the operation. Contains true if the command call was successful else contains false.
AS400MessageList
Record List of AS/400 messages returned while running the command. It returns an empty list if there are no messages. It returns the following:
*messageID. The message ID of the AS/400 message.
*messageText. The message text of the AS/400 message.
Example
wm.as400.sample.CL:CRTLIB