Zend Server CE - WebSmart php ToolKitApi

General discussion forum for the Zend Server

Zend Server CE - WebSmart php ToolKitApi

Postby jmartin17 on Sat Jan 19, 2013 12:07 am

I am running on ReleaseV5R4 using the new ToolKitApi. I want to use get job attribute for the Job Name User Name and Job Number
I have the latest CW.php and the connection works to the iSeries but I am having trouble using i5_job_list_read to get
the attributes?

I have in my code:

global $i5conn;
global $db2conn;
$db2conn = xl_db2_connect($options);
if(!($i5conn = xl_i5_connect()))
die("Unable to get an i5 connection");
if(!$db2conn)
{
die('Failed to connect to database!');
}
$jobAttr = $i5conn->getJobAttributes();

function getJobAttributes() {

i5_job_list_read($JobName);
echo("<BR> STMT 261 i5_job_list_read: ");
print_r($JobName);
var_dump($JobName);
}

it does not return anything? Does anyone know what is wrong or have used this i5_job_list_read?

James
James R. Martin
J Martin Associates
jmartin17
 
Posts: 16
Joined: Sat Jan 30, 2010 5:00 pm

Return to Zend Server

Who is online

Users browsing this forum: Google [Bot] and 5 guests