BookmarkSubscribeRSS Feed
alevimont
Calcite | Level 5

Hi there,

 

Short question... does SAS studio allow the use of catalog (.sas7bcat)? by "use" I mean accessing and displaying to the content of pgm source

 

Thanks !

8 REPLIES 8
LinusH
Tourmaline | Level 20

I don't think that there's any support in the UI for displaying catalog content.

But I guess that you could use programming to show text in catalog entries in the output/log windows. A bit cumbersome perhaps...

Data never sleeps
AmyP_sas
SAS Employee

We're not able to show catalogs and catalog entries in the navigation in Studio.  Since there have been requests for this, snippets are delivered with Studio to allow you to investigate catalogs and catalog entries programatically.  See the Working with Code Snippets section of the user's guide for a description.

alevimont
Calcite | Level 5

Thank you both for your useful answer. 

When using the snippets 'List Catalog entries', to check what's in my old catalog, I got that error below:

 

ERROR: File PGM.STANDARDS.CATALOG was created for a different operating system.

 

Should I understand the format .sas7bcat is not compatible anymore with the SAS studio version ?

LinusH
Tourmaline | Level 20
Chances are that you copied it from another SAS installation...?
SAS catalogs are unlike other SAS files not compatible between environments and versions, since they contains partially compiled entries.
Use proc cport/cimport to make it accessible in the SAS Studio environment.
Data never sleeps
alevimont
Calcite | Level 5

Thanks to all of you for your answers.

 

Indeed, my catalog is from the previous version... I tried then the folowing:

 

 

proc cimport library=mylibename file=myfilename memtype=catalog; run;

 

But still get an error..

 

ERROR: File PGM.STANDARDS.CATALOG was created for a different operating system.

Can this procedure really do the job ?

Tom
Super User Tom
Super User

You skipped the critical first step of running PROC CPORT on the source system to generate a transport file.  You can then copy that file to your new environment and run PROC CIMPORT on it.

alevimont
Calcite | Level 5

If I get it rigth, for that, I have to export (proc cport) my catalog from the previous sas version into a transport file, and then import it with proc cimport in SAS studio ?

 

There is no other option rather than getting back into an old sas version ?

LinusH
Tourmaline | Level 20
Unfortunately not. See catalogs as compiled files.
Data sets are more forgiving between versions and hosts.
Data never sleeps

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

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
  • 8 replies
  • 2320 views
  • 0 likes
  • 4 in conversation