BookmarkSubscribeRSS Feed
bartoszkutyla
SAS Employee


We've build a log scanner which make use of de viya job api through the following code:

 

%let base_uri=%sysfunc(getoption(SERVICESBASEURL));

proc http method=get oauth_bearer = sas_services
url="&base_uri/jobExecution/jobs/?limit=3000"
out=jobrec;
run;

Starting from the end of September, it sometimes gives an error. The cause of this error is the fact that the api give a html status 500 internal server.

 

I have replicated using api calls from curl.

curl -o results https://xxx.ondemand.sas.com/jobExecution/jobs/?limit=3000 --cacert xxxx -H "Authorization: Bearer $BEARER_TOKEN"

 

if the result is smaller (limit set to <1000) I can get results almost immediately and for each call, for bigger results we are getting htt500.

I run the same in the loop and around 10% calls were successfull;

 

The output in size is around 60mb (slightly less) with limits starting from 1000.
The maximum size with limit 3000 (used by customer) is 59.8mb

 

-rw-r--r-- 1 splbrk UsersGrp 59629324 Nov 2 04:31 results (limit 1000)
-rw-r--r-- 1 splbrk UsersGrp 60200103 Nov 2 04:31 results2 (limit 1200)
-rw-r--r-- 1 splbrk UsersGrp 62686500 Nov 2 04:41 results3 (limit 3000)

I would say that ~60mb is something that doesnt make happy our calls even this is still very small output.

Is there any limit? Any options to steer? I have found in tessa similar issue but for Viya 3.5

 

Best Regards,

Bartosz

1 REPLY 1
joeFurbee
Community Manager

Hi @bartoszkutyla,

I don't know of any limits. This issues most likely will take some investigation based on your SAS Viya environment. I would recommend opening a service ticket with tech support for this investigation. Tech support may be aware of limitations.


Join us for SAS Community Trivia
SAS Bowl XLIII, The New SAS Developer Portal
Wednesday, August 14, 2024, at 10 a.m. ET | #SASBowl

SAS Innovate 2025: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 1402 views
  • 0 likes
  • 2 in conversation