Example

The code snippet below requests job-related data from the Status (ST) panel. The settings object is used to restrict the returned data to a subset of jobs with the indicated job name prefix (in this case, all job names) and owner (IBMUSER).

// Create optional settings object
ISFRequestSettings settings = new ISFRequestSettings();
settings.addISFPrefix("**");  // Set job name prefix  
settings.addISFOwner("ibmuser");  // Set job owner 

// Get a runner used to access SDSF ST panel 
ISFStatusRunner runner = new ISFStatusRunner(settings); 

List<ISFStatus> statObjList = null;

try {  
  statObjList = runner.exec();  
} catch (ISFException e) {  
  // Process exception here  
} finally {  
  // Print SDSF messages related to request  
  results.printMessageList(System.err); 

}// List job properties  
if (statObjList != null) {  
   for (ISFStatus statObj : statObjList) {  
     System.out.println(statObjList.toVerboseString()); 
   } 
}