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

Doing a migrate process and found some SCL written in 1997. We discontinued SAS/AF years ago and need to know what is in the catalog so we can rewrite and migrate without it being SCL.

Any ideas how I can read the SCL entry without SAS/AF? (years since I used AF, are SCL entries even readable??)

1 ACCEPTED SOLUTION

Accepted Solutions
SASKiwi
PROC Star

You could try the CATALOG access method in the FILENAME statement: https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lestmtsglobal/n0e720f80cp61wn1mplyz2xy2aeu...

 

Then use the INCLUDE fileref command in the SAS Windowing Environment.

 

I assume you have been able to report on entries within a catalog, perhaps using PROC CATALOG. If this doesn't work then FILENAME is unlikely to work.

View solution in original post

5 REPLIES 5
SASKiwi
PROC Star

You could try the CATALOG access method in the FILENAME statement: https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lestmtsglobal/n0e720f80cp61wn1mplyz2xy2aeu...

 

Then use the INCLUDE fileref command in the SAS Windowing Environment.

 

I assume you have been able to report on entries within a catalog, perhaps using PROC CATALOG. If this doesn't work then FILENAME is unlikely to work.

bitcruncher
Obsidian | Level 7

Yup, that worked. All I needed was this

 

 

libname scllib 'PRODD.D29801.PROD.SCLLIB' disp=shr ;

 

filename fileref1 catalog 'scllib.aftools.csv.scl' ;

 

data _null_ ;
infile fileref1 ;
input ;
put _infile_ ;
run ;

 

and out popped every line of code in the SCL entry.

 

Thanks for that, much appreciated. Must be the first time in over 30 years I've touched anything SCLish or CATALOGish!

SASKiwi
PROC Star

@bitcruncher - Wow catalogs on zOS! Pretty amazing you can still read these after all that time!

Tom
Super User Tom
Super User

Probably only the SOURCE entries.

Also if it is really from 28 years ago you might need to have access to an old version of SAS to read it.  Catalog files are not cross version compatible like V7 SAS datasets are.

bitcruncher
Obsidian | Level 7
Arrgh .. thanks for that

Catch up on SAS Innovate 2026

Dive into keynotes, announcements and breakthroughs on demand.

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
  • 839 views
  • 2 likes
  • 3 in conversation