API Reference Guide > PHP XMLSERVICE Toolkit > iToolkit Service Class > Retrieve System Values Methods

Retrieve System Values Methods

SystemValuesList

SystemValuesList () - Retrieves all system values.  

Sample Code

Usage Example

$List = $SysVals->SystemValuesList();

 

GetSystemValue

GetSystemValue($SysValueName) - Retrieves requested system value.  

 

Arguments

Value

Description

$SysValueName

 

The IBM system value name

Sample Code

Usage Example

$CCSID = $SysVals-> GetSystemValue("QCCSID");

 

A PHP Script That Shows The Usage of System Values Methods

Usage Example

<?php
include_once '../API/iToolkitService.php';
try {
         $ToolkitSrvObj = ToolkitService::getInstance("*LOCAL", "",  "");
     }
         catch (Exception $e) {              
        echo  $e->getMessage(), "\n";
        exit();
}
$SysVals= new SystemValues($ToolkitSrvObj);
$List = $SysVals->SystemValuesList();
$CCSID = $SysVals-> GetSystemValue("QCCSID");
   
?>

 

 

Read Also

  PHP XMLSERVICE Toolkit    
  iToolkit Service Class