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??)
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.
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.
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!
@bitcruncher - Wow catalogs on zOS! Pretty amazing you can still read these after all that time!
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.
Dive into keynotes, announcements and breakthroughs on demand.
Explore Now →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.
Ready to level-up your skills? Choose your own adventure.