Retrieve a job log

get/sessions/{sessionId}/jobs/{jobId}/log

Retrieves the log output associated with a job. A job log is a subset of the session log. Therefore, the first line of a job log begins at a location (offset) within the session log. This operation returns a collection in which each entry is of the type application/vnd.sas.compute.log.line.

Request Samples

1

Response Samples

1{
2 "links": [
3 {
4 "method": "GET",
5 "rel": "self",
6 "href": "/compute/sessions/92626ce2-db0f-4d11-b9cf-439a567dbcb7-ses0000/jobs/0/log?start=0&limit=100",
7 "uri": "/compute/sessions/92626ce2-db0f-4d11-b9cf-439a567dbcb7-ses0000/jobs/0/log?start=0&limit=100",
8 "type": "application/vnd.sas.collection",
9 "itemType": "application/vnd.sas.compute.log.line"
10 },
11 {
12 "method": "GET",
13 "rel": "collection",
14 "href": "/compute/sessions/92626ce2-db0f-4d11-b9cf-439a567dbcb7-ses0000/jobs/0/log",
15 "uri": "/compute/sessions/92626ce2-db0f-4d11-b9cf-439a567dbcb7-ses0000/jobs/0/log",
16 "type": "application/vnd.sas.collection",
17 "itemType": "application/vnd.sas.compute.log.line"
18 },
19 {
20 "method": "GET",
21 "rel": "next",
22 "href": "/compute/sessions/92626ce2-db0f-4d11-b9cf-439a567dbcb7-ses0000/jobs/0/log?start=100&limit=100",
23 "uri": "/compute/sessions/92626ce2-db0f-4d11-b9cf-439a567dbcb7-ses0000/jobs/0/log?start=100&limit=100",
24 "type": "application/vnd.sas.collection",
25 "itemType": "application/vnd.sas.compute.log.line"
26 },
27 {
28 "method": "GET",
29 "rel": "last",
30 "href": "/compute/sessions/92626ce2-db0f-4d11-b9cf-439a567dbcb7-ses0000/jobs/0/log?start=589&limit=100",
31 "uri": "/compute/sessions/92626ce2-db0f-4d11-b9cf-439a567dbcb7-ses0000/jobs/0/log?start=589&limit=100",
32 "type": "application/vnd.sas.collection",
33 "itemType": "application/vnd.sas.compute.log.line"
34 }
35 ],
36 "name": "Job Log",
37 "accept": "application/vnd.sas.compute.log.line",
38 "start": 0,
39 "count": 689,
40 "items": [
41 {
42 "line": " 1 %put %sysget(SASROOT);",
43 "type": "source"
44 },
45 {
46 "line": " /sasgen/dev/mva-vb005/SAS/laxdo",
47 "type": "normal"
48 },
49 {
50 "line": " 2 proc options option=JREOPTIONS value; run;",
51 "type": "source"
52 },
53 {
54 "line": " SAS (r) Proprietary Software Release V.03.00M0P05192016",
55 "type": "normal"
56 },
57 {
58 "line": " ",
59 "type": "normal"
60 },
61 {
62 "line": " Option Value Information For SAS Option JREOPTIONS",
63 "type": "normal"
64 },
65 {
66 "line": " Value: ( -Djava.class.path=/sasgen/dev/mva-vb005/SAS/laxdo/vjr/eclipse/plugins/sas.launcher.jar ",
67 "type": "normal"
68 },
69 {
70 "line": " -Dlog4j.configuration=file:/sasgen/dev/mva-vb005/SAS/laxdo/misc/tkjava/sas.log4j.properties ",
71 "type": "normal"
72 },
73 {
74 "line": " -Dsas.app.class.path=/sasgen/dev/mva-vb005/SAS/laxdo/vjr/eclipse/plugins/tkjava.jar ",
75 "type": "normal"
76 },
77 {
78 "line": " -Djava.security.auth.login.config=/sasgen/dev/mva-vb005/SAS/laxdo/misc/tkjava/sas.login.config ",
79 "type": "normal"
80 },
81 {
82 "line": " -Djava.security.policy=/sasgen/dev/mva-vb005/SAS/laxdo/misc/tkjava/sas.policy -Djava.system.class.loader=com.sas.app.AppClassLoader ",
83 "type": "normal"
84 },
85 {
86 "line": " -Dsas.ext.config=/sasgen/dev/mva-vb005/SAS/laxdo/misc/tkjava/sas.java.ext.config ",
87 "type": "normal"
88 },
89 {
90 "line": " -DPFS_TEMPLATE=/sasgen/dev/mva-vb005/SAS/laxdo/misc/tkjava/qrpfstpt.xml ",
91 "type": "normal"
92 },
93 {
94 "line": " -Dtkj.app.launch.config=/sasgen/dev/mva-vb005/SAS/laxdo/picklist -Xusealtsigs )",
95 "type": "normal"
96 },
97 {
98 "line": " Scope: SAS Session",
99 "type": "normal"
100 },
101 {
102 "line": " How option value set: Config File",
103 "type": "normal"
104 },
105 {
106 "line": " Config file name:",
107 "type": "normal"
108 },
109 {
110 "line": " /sasgen/dev/mva-vb005/SAS/laxdo/sasv9.cfg",
111 "type": "normal"
112 },
113 {
114 "line": " ",
115 "type": "normal"
116 },
117 {
118 "line": " NOTE: PROCEDURE OPTIONS used (Total process time):",
119 "type": "note"
120 },
121 {
122 "line": " real time 0.00 seconds",
123 "type": "note"
124 },
125 {
126 "line": " cpu time 0.00 seconds",
127 "type": "note"
128 },
129 {
130 "line": " ",
131 "type": "note"
132 },
133 {
134 "line": " 3 proc options option=SASUSER value; run;",
135 "type": "source"
136 },
137 {
138 "line": " SAS (r) Proprietary Software Release V.03.00M0P05192016",
139 "type": "normal"
140 },
141 {
142 "line": " ",
143 "type": "normal"
144 },
145 {
146 "line": " Option Value Information For SAS Option SASUSER",
147 "type": "normal"
148 },
149 {
150 "line": " Value: ~/sasuser.mva-vb005.lax",
151 "type": "normal"
152 },
153 {
154 "line": " Scope: SAS Session",
155 "type": "normal"
156 },
157 {
158 "line": " How option value set: Config File",
159 "type": "normal"
160 },
161 {
162 "line": " Config file name:",
163 "type": "normal"
164 },
165 {
166 "line": " /sasgen/dev/mva-vb005/SAS/laxdo/sasv9.cfg",
167 "type": "normal"
168 },
169 {
170 "line": " ",
171 "type": "normal"
172 },
173 {
174 "line": " NOTE: PROCEDURE OPTIONS used (Total process time):",
175 "type": "note"
176 },
177 {
178 "line": "12 The SAS System 15:13 Friday, May 20, 2016",
179 "type": "title"
180 },
181 {
182 "line": " ",
183 "type": "title"
184 },
185 {
186 "line": " real time 0.00 seconds",
187 "type": "note"
188 },
189 {
190 "line": " cpu time 0.00 seconds",
191 "type": "note"
192 },
193 {
194 "line": " ",
195 "type": "note"
196 },
197 {
198 "line": " 4 proc options; run;",
199 "type": "source"
200 },
201 {
202 "line": " SAS (r) Proprietary Software Release V.03.00M0P05192016",
203 "type": "normal"
204 },
205 {
206 "line": " ",
207 "type": "normal"
208 },
209 {
210 "line": " ",
211 "type": "normal"
212 },
213 {
214 "line": " Portable Options:",
215 "type": "normal"
216 },
217 {
218 "line": " ",
219 "type": "normal"
220 },
221 {
222 "line": " ANIMATION=STOP Specifies whether to start or stop animation.",
223 "type": "normal"
224 },
225 {
226 "line": " ANIMDURATION=MIN Specifies the number of seconds that each animation frame displays.",
227 "type": "normal"
228 },
229 {
230 "line": " ANIMLOOP=YES Specifies the number of iterations that animated images repeat.",
231 "type": "normal"
232 },
233 {
234 "line": " ANIMOVERLAY Specifies that animation frames are overlaid in order to view all frames.",
235 "type": "normal"
236 },
237 {
238 "line": " APPEND= Specifies an option=value pair to insert the value at the end of the existing option value.",
239 "type": "normal"
240 },
241 {
242 "line": " APPLETLOC=/sasgen/dev/mva-vb005/avdobj/jar/laxno",
243 "type": "normal"
244 },
245 {
246 "line": " Specifies the location of Java applets, which is typically a URL.",
247 "type": "normal"
248 },
249 {
250 "line": " ARMAGENT= Specifies an ARM agent (which is an executable module or keyword, such as LOG4SAS) that contains a specific ",
251 "type": "normal"
252 },
253 {
254 "line": " implementation of the ARM API.",
255 "type": "normal"
256 },
257 {
258 "line": " ARMLOC=ARMLOG.LOG Specifies the location of the ARM log.",
259 "type": "normal"
260 },
261 {
262 "line": " ARMSUBSYS=(ARM_NONE)",
263 "type": "normal"
264 },
265 {
266 "line": " Specifies the SAS ARM subsystems to enable or disable.",
267 "type": "normal"
268 },
269 {
270 "line": " AUTOCORRECT Automatically corrects misspelled procedure names and keywords, and global statement names.",
271 "type": "normal"
272 },
273 {
274 "line": " AUTOEXEC= Specifies the location of the SAS AUTOEXEC files.",
275 "type": "normal"
276 },
277 {
278 "line": " AUTOSAVELOC= Specifies the location of the Program Editor auto-saved file.",
279 "type": "normal"
280 },
281 {
282 "line": " NOAUTOSIGNON Disables a SAS/CONNECT client from automatically submitting the SIGNON command remotely with the RSUBMIT command.",
283 "type": "normal"
284 },
285 {
286 "line": " BINDING=DEFAULT Specifies the binding edge type of duplexed printed output.",
287 "type": "normal"
288 },
289 {
290 "line": " BOMFILE Writes the byte order mark (BOM) prefix when a Unicode-encoded file is written to an external file.",
291 "type": "normal"
292 },
293 {
294 "line": " BOTTOMMARGIN=0.000 IN",
295 "type": "normal"
296 },
297 {
298 "line": " Specifies the size of the margin at the bottom of a printed page.",
299 "type": "normal"
300 },
301 {
302 "line": " BUFNO=1 Specifies the number of buffers for processing SAS data sets.",
303 "type": "normal"
304 },
305 {
306 "line": " BUFSIZE=0 Specifies the size of a buffer page for output SAS data sets.",
307 "type": "normal"
308 },
309 {
310 "line": " BYERR SAS issues an error message and stops processing if the SORT procedure attempts to sort a _NULL_ data set.",
311 "type": "normal"
312 },
313 {
314 "line": " BYLINE Prints the BY line above each BY group.",
315 "type": "normal"
316 },
317 {
318 "line": " BYSORTED Requires observations in one or more data sets to be sorted in alphabetic or numeric order.",
319 "type": "normal"
320 },
321 {
322 "line": " NOCAPS Does not convert certain types of input, and all data lines, into uppercase characters.",
323 "type": "normal"
324 },
325 {
326 "line": " NOCARDIMAGE Does not process SAS source code and data lines as 80-byte records.",
327 "type": "normal"
328 },
329 {
330 "line": " CASAUTHINFO= Specifies an authinfo or netrc file that includes authentication information.",
331 "type": "normal"
332 },
333 {
334 "line": " CASHOST= The CAS server name associated with a CAS session.",
335 "type": "normal"
336 },
337 {
338 "line": " CASLIB= Specify the default CASLIB name.",
339 "type": "normal"
340 },
341 {
342 "line": " CASNAME=CASAUTO Identify the name to associate with a generated CAS session.",
343 "type": "normal"
344 },
345 {
346 "line": " CASNWORKERS=ALL Specify the number of workers to use with a CAS session.",
347 "type": "normal"
348 },
349 {
350 "line": " CASPORT=0 The port associated with a CAS session.",
351 "type": "normal"
352 },
353 {
354 "line": " CASSESSOPTS= Identify CAS server session options.",
355 "type": "normal"
356 },
357 {
358 "line": " CASTIMEOUT=60 The CAS session timeout in seconds.",
359 "type": "normal"
360 },
361 {
362 "line": " CASUSER= The userid associated with a CAS session.",
363 "type": "normal"
364 },
365 {
366 "line": " CATCACHE=0 Specifies the number of SAS catalogs to keep open in cache memory.",
367 "type": "normal"
368 },
369 {
370 "line": " CBUFNO=0 Specifies the number of extra page buffers to allocate for each open SAS catalog.",
371 "type": "normal"
372 },
373 {
374 "line": " CENTER Center SAS procedure output.",
375 "type": "normal"
376 },
377 {
378 "line": " CGOPTIMIZE=3 Specifies the level of optimization to perform during code compilation.",
379 "type": "normal"
380 },
381 {
382 "line": " NOCHARCODE Does not substitute specific keyboard combinations for special characters that are not on the keyboard.",
383 "type": "normal"
384 },
385 {
386 "line": " NOCHKPTCLEAN Does not erase files in the Work library after a batch program successfully executes in checkpoint mode or ",
387 "type": "normal"
388 },
389 {
390 "line": " restart mode.",
391 "type": "normal"
392 },
393 {
394 "line": " CLEANUP Performs automatic continuous cleanup of non-essential resources in out-of-resource conditions.",
395 "type": "normal"
396 },
397 {
398 "line": " NOCMDMAC Does not check window environment commands for command-style macros.",
399 "type": "normal"
400 },
401 {
402 "line": " CMPLIB= Specifies one or more SAS data sets that contain compiler subroutines to include during compilation.",
403 "type": "normal"
404 },
405 {
406 "line": " CMPMODEL=BOTH Specifies the output model type for the MODEL procedure.",
407 "type": "normal"
408 },
409 {
410 "line": " CMPOPT=(NOEXTRAMATH NOMISSCHECK NOPRECISE NOGUARDCHECK NOGENSYMNAMES NOFUNCDIFFERENCING SHORTCIRCUIT NOPROFILE)",
411 "type": "normal"
412 },
413 {
414 "line": " Specifies the type of code-generation optimizations to use in the SAS language compiler.",
415 "type": "normal"
416 },
417 {
418 "line": "13 The SAS System 15:13 Friday, May 20, 2016",
419 "type": "title"
420 },
421 {
422 "line": " ",
423 "type": "title"
424 },
425 {
426 "line": " NOCOLLATE Does not collate multiple copies of printed output.",
427 "type": "normal"
428 },
429 {
430 "line": " COLOPHON= Specifies the comment text that is included in graphic stream files.",
431 "type": "normal"
432 },
433 {
434 "line": " COLORPRINTING Prints in color if color printing is supported.",
435 "type": "normal"
436 },
437 {
438 "line": " COMAMID=TCP Specifies the communication access method for connecting client and server sessions across a network.",
439 "type": "normal"
440 }
441 ],
442 "limit": 100,
443 "version": 2
444}

Path Parameters

NameTypeRequiredDescription
jobId
string
true

Specifies the ID of the job.

sessionId
string
true

Specifies the ID of the session.

Query Parameters

NameTypeRequiredDescription
limit
integer<int32>
false

Specifies the number of items in a page.

Default:
100
start
integer<int64>
false

Specifies the offset of the first item in a collection. The first line is at start=0.

timeout
integer
false

Specifies the request time-out in seconds. If no log lines are available over this time period, an empty collection is returned.

type
string
false

Restricts log collection to those entries with a specified type. Specify multiple types in a query by separating them with a '|'. For example, you might specify ?type=error or ?type=error|warning.

Responses

StatusMeaningDescription
200OK

The request succeeded.

HeadersSchema
400Bad Request

The request was invalid.

Schema
404Not Found

No resource exists at the requested path.

Schema