Hello,
I am using SAS VIYA LTS 2023.03.
Having admin rights, I would like to create a list of all the SAS codes and SAS job definitions available on our SAS VIYA platform. Has anyone tried that before or maybe you can help with suggestions or starting points.
Thank you,
smm662002
Hi @smm662002,
To get a list of the job definitions, you could make an API call using the Get a collection of job definitions endpoint in the Definitions API. You could then parse the JSON results in SAS using the LIBNAME Statement: JSON Engine.
I don't see an API for SAS Codes, so I'm not sure on that one.
Join us for SAS Community Trivia
@joeFurbee wrote:
I don't see an API for SAS Codes, so I'm not sure on that one.
you want a list of all *.sas files?
Do you want
??
Koen
Hi,
Thank you for your answer.
Your understanding is right, I would like an automated solution to extract all the SAS codes from:
Thank you,
smm662002
For point 1 (a list of all *.sas files in file system) ...
, have a look here :
Home > Programming > Programming > How to: List all the files in a folder
https://communities.sas.com/t5/SAS-Programming/How-to-List-all-the-files-in-a-folder/m-p/674065#M202...
Look at the full topic thread (not only the solution).
Koen
The SAS Users Group for Administrators (SUGA) is open to all SAS administrators and architects who install, update, manage or maintain a SAS deployment.
SAS technical trainer Erin Winters shows you how to explore assets, create new data discovery agents, schedule data discovery agents, and much more.
Find more tutorials on the SAS Users YouTube channel.