Jobs
Create a SAS job
Creates a new job to run a SAS program. The type of job is created depending on the Accept header. application/vnd.sas.batch.job.request.sas.batch+json headers creates a Batch job to run a SAS program. application/vnd.sas.batch.job.request.sas.line.mode+json headers creates a new interactive job to run SAS in line mode. application/vnd.sas.batch.job.request.command.batch+json headers creates a Batch job to run an arbitrary command. application/vnd.sas.batch.job.request.command.interactive+json headers creates an interactive job to run an arbitrary command.
post/jobs
Request
- Base URL: https://example.com/batch
- URL: https://example.com/batch/jobs
- Auth: none declared
Request body
Example request
{
"fileSetId": "JOB_20220606_182805_634_1",
"launcherOptions": {
"batchContextId": "123e4567-e89b-12d3-a456-426614174000",
"jobName": "Monthly Status Report for New York",
"requiredResources": "gpuRequired",
"workloadQueueName": "Priority Queue"
},
"restartType": "job",
"listFile": "/my/path/in/my/batch/server/pod/@FILESETID@/mySASPgm-@STARTTIME@.lst",
"logFile": "/my/path/in/my/batch/server/pod/@FILESETID@/mySASPgm-@STARTTIME@.log",
"outputDir": "/my/path/in/my/batch/server/pod/@FILESETID@",
"sasProgramName": "myTestProgram.sas",
"sasOptions": "-memsize 2048",
"watchOutput": true
}Response
The job was created.
Example response
{
"contextId": "16c332b2-4ac6-483b-85f6-7bb9d2d5a576",
"endedTimeStamp": "2022-06-01T13:55:32Z",
"executionHost": "myhost01.mycompany.com",
"fileSetId": "JOB_20220606_182805_634_1",
"id": "16a46fa5-f866-488d-9cec-92e226bfcf5",
"name": "Monthly Status Report for New York",
"port": 23645,
"processId": "5",
"workloadJobId": "1375",
"returnCode": 2,
"state": "failed",
"startedTimeStamp": "2022-06-01T13:45:32Z",
"submittedTimeStamp": "2022-06-01T13:44:32Z"
}Changes
No recorded changes to this operation across all 1 revision of this API.