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

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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