The data results XML
A request submitted via the URL API will return an SplusDataResult object, represented as an XML structure.
Example
The following example contains the XML returned from a request to create a Fibonacci sequence, using the URL API:
http://servername:8080/SplusServer/api/v8/expression/eval?cmd=x<-filter(rep(0,%2030),%20c(1,%201),%20method="rec", %20init=c(1,%201))&async=false
The resulting SplusDataResult object, in XML format, looks like the following:
<SplusDataResult version="1.0" createdBy="user1" serverTime="3487" scheduledMillis="1363216268135" prepTime="0" createdMillis="1363216268135" status="2" serverInstance="servername" scheduled="Wed Mar 13 16:11:08 PDT 2013" queueCount="0" percent="0.0" jobId="1" hasWarnings="false" hasTextOutput="true" hasReturnValue="true" hasError="false" engineTime="3109" created="Wed Feb 4 16:11:08 PDT 2015">
Note that the SplusDataResult object has the following properties:
| Property | Description |
|---|---|
version |
The server XML version. |
createdBy |
The login name of the user who created the request. |
serverTime |
The number of milliseconds the job spent on the server. |
scheduledMillis |
The date and time that the request was scheduled to run, in milliseconds since epoch. |
prepTime |
The number of milliseconds the server takes to prepare to run the job (that is, preparing an available engine). |
createdMillis |
The date and time that the request was created, in milliseconds since epoch. |
status |
‘2’ indicates that the job is done. (Other status options include waiting (0), running (1), done with error (3), failed (-1), and interrupted (-2)). |
serverInstance |
In a clustered environment, the server containing the engine where the job ran. In a single-server environment, the name of the server. |
scheduled |
Specifies the date and time the request was scheduled. This synchronous request ran on the first available engine, shortly after the request was submitted. |
queueCount |
Specifies the position in the queue while waiting to run. |
jobID |
The identifier for the job. If a user needs to find it later, the user can pass this jobID to find the job. |
hasWarnings |
‘false’ indicates that the example ran without warnings.
If hasWarnings displays true, they appear in separate section in the SplusDataResult object. For example: <SplusWarnings>
<