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

Hi!

I'm looking for a way to get all entry/object/whatever names of a catalog into a list in SCL. I must stress that I'm new to SAS, so perhaps there is an obvious solution here that I'm not seeing... Smiley Sad.

To be exact, my catalog (sas7bcat) contains SCL files/scripts, and i would like to have an SCL list containing all the names of the SCL scripts in that catalog.

Is there any way to do this?

Thanks for any advise!

1 ACCEPTED SOLUTION

Accepted Solutions
jakarman
Barite | Level 11

Base SAS(R) 9.3 Procedures Guide, Second Edition  (proc catalog)  google is your friend.
Remember it are no files it are members in a catalog. Having it as a SAS dataset  you can get it into a list. 

---->-- ja karman --<-----

View solution in original post

5 REPLIES 5
jakarman
Barite | Level 11

Using proc catalog?

Eguide  with the catalog browser added?

Using base/sas? 

You can brows/edit SCL in remote connections it is  also browsable. Just open is like a dataset library. No idea what your problem is. 

---->-- ja karman --<-----
Nieumysl
Calcite | Level 5


Thanks for answer. I dont need to display the entries anywhere. What I need is a list containing all file names as a variable in a scl program. For example: 'file1.scl file2.scl file3.scl'

jakarman
Barite | Level 11

Base SAS(R) 9.3 Procedures Guide, Second Edition  (proc catalog)  google is your friend.
Remember it are no files it are members in a catalog. Having it as a SAS dataset  you can get it into a list. 

---->-- ja karman --<-----
Nieumysl
Calcite | Level 5


thanks a lot Smiley Wink Google is indeed a friend, provided you know what to look for - i was just looking for a way to do it in scl directly, and this hadn't occured to me. Like i said, I'm new Smiley Happy...

jakarman
Barite | Level 11

perhaps it can also be done with some functions. They must be there (open dir ) getting them one for one building the list. SAS(R) Component Language 9.2: Reference  (catlist) but all depends on what you are going to do. There is never just one solution.    

---->-- ja karman --<-----

Catch up on SAS Innovate 2026

Nearly 200 sessions are now available on demand with the SAS Innovate Digital Pass.

Explore 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
  • 5 replies
  • 3615 views
  • 0 likes
  • 2 in conversation