Obtaining column values

Request column values by column name using the getValue method. The value can be returned as a formatted string or as a byte array for processing by the application.

Column names are different than the column titles that are displayed when you use SDSF interactively. Use the SDSF COLSHELP command to list the column names recognized by the getValue method. Column names are not case sensitive.

Some classes include convenience methods for obtaining common values such as job name. The fixed field (the first column on a panel when you use SDSF interactively) can also be obtained using the getFixedField method.

The following code snippet shows how to obtain column values using a previously created ISFStatus statObj object.

// Get job name and owner 
String jobname = statObj.getValue("jname"); 
String owner = statObj.getValue("ownerid");

// Get fixed field (jobname) 
String fixedField = statObj.getFixedField();