BookmarkSubscribeRSS Feed
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

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 --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,


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 XXXVI, Data Simulation
Wednesday, December 13, 2023, at 10 a.m. ET | #SASBowl



Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

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.

Get the $99 certification deal.jpg



Back in the Classroom!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 2 in conversation