BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
danweifis
Calcite | Level 5

Hi, using technology older than 12 years ago... SAS AF....

 

I want to get/know all SCL frames+catalog in order to "search" inside of them by "words" - like "grep" in linux.

 

In addition, is there a way to check where are those SCL are stored in order to "run" - like "/usr/local/html" in webserver.

 

Thanks

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
ballardw
Super User

Do you want to identify the Frames or the SCL code?

 

Proc catalogs may get you started for what you ask.

proc catalog catalog=sashelp.afclass ;
contents  out=work.afclasscontents;
run;

At least in my installation sashelp.afclass has frames and SCL entries. There is a variable type in the out= data set of Type that indicates the Frame, SCL and Slist entries (plus a few more).  The Entrytype= option on the Proc statement limits the output to one type of entry.

 

The physical catalog location would be in SASHELP.VMEMBER or Dictionary.Members for Proc SQL

proc sql;
   create table work.cats as
   select * 
   from dictionary.members
   where libname='SASHELP' and memtype='CATALOG'
   ;
quit;

 

View solution in original post

2 REPLIES 2
SASKiwi
PROC Star

SAS/AF catalogs can only easily be searched using SAS/AF. Also SAS/AF can only be used via the SAS Windowing Environment aka Display Manager, the legacy user interface.

 

That means you have to have a 'full' SAS installation on a PC. While you can develop SCL programs that are just code and call them from Base SAS, I would not recommend doing any new development work in this product. SAS/AF is not designed for web-based or thin client applications. It won't work in Enterprise Guide or SAS Studio for example. 

ballardw
Super User

Do you want to identify the Frames or the SCL code?

 

Proc catalogs may get you started for what you ask.

proc catalog catalog=sashelp.afclass ;
contents  out=work.afclasscontents;
run;

At least in my installation sashelp.afclass has frames and SCL entries. There is a variable type in the out= data set of Type that indicates the Frame, SCL and Slist entries (plus a few more).  The Entrytype= option on the Proc statement limits the output to one type of entry.

 

The physical catalog location would be in SASHELP.VMEMBER or Dictionary.Members for Proc SQL

proc sql;
   create table work.cats as
   select * 
   from dictionary.members
   where libname='SASHELP' and memtype='CATALOG'
   ;
quit;

 

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

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

View all other training opportunities.

Discussion stats
  • 2 replies
  • 318 views
  • 1 like
  • 3 in conversation