PreviousNext
Help > API Functions > Program and Procedure calls > i5_XmlBindSrvPgm
i5_XmlBindSrvPgm

 

 This function bind a Service Program to the job.

 

  bool i5_XmlBindSrvPgm (string Service_Program [, resource Connection ])

 

 

Parameters

 

service_program

Name of service program to bind.
Name can be qualified (Library/Name). If library is not specified, *LIBL is the default.

connection

Easycom Connection - Result of i5_connect() or i5_pconnect().

 

 

Return

True / False.

 

Details

 Service Program is bound to the job. All procedure entry points become accessible for calls from  i5_XmlCallProgram function calls.

 

Example

 

// Bind SRVPTEST1 service program.

$ret = i5_XmlBindSrvPgm ("SRVPTEST1");

if (!$ret)

{

                   print_r("i5_ XmlBindSrvPgm error : ".i5_errormsg().'<br/>');

}

 

 

 

 

See also

i5_XmlCallProgram

i5_XmlDefine

i5_XmlLoadDefinition

i5_XmlExecRequest