BookmarkSubscribeRSS Feed
smm662002
Quartz | Level 8

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

4 REPLIES 4
joeFurbee
Community Manager

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
SAS Bowl XLIII, The New SAS Developer Portal
Wednesday, August 14, 2024, at 10 a.m. ET | #SASBowl

sbxkoenk
SAS Super FREQ

@joeFurbee wrote:

I don't see an API for SAS Codes, so I'm not sure on that one.


@smm662002 

you want a list of all *.sas files?

Do you want 

  • a list of all *.sas files in file system
  • a list of all *.sas files in SAS Content folder
  • a list of all *.sas files in file system AND in SAS Content folder

??

 

Koen

smm662002
Quartz | Level 8

Hi,

 

Thank you for your answer.

Your understanding is right, I would like an automated solution to extract all the SAS codes from:

  • a list of all *.sas files in file system
  • a list of all *.sas files in SAS Content folder
  • a list of all *.sas files in file system AND in SAS Content folder

Thank you,

smm662002

sbxkoenk
SAS Super FREQ

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

suga badge.PNGThe SAS Users Group for Administrators (SUGA) is open to all SAS administrators and architects who install, update, manage or maintain a SAS deployment. 

Join SUGA 

Get Started with SAS Information Catalog in SAS Viya

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.

Discussion stats
  • 4 replies
  • 855 views
  • 0 likes
  • 3 in conversation