Write and run SAS programs in your web browser

SAS studio - Use of Catalog

Reply
New Contributor
Posts: 4

SAS studio - Use of Catalog

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 !

Super User
Posts: 5,383

Re: SAS studio - Use of Catalog

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
SAS Employee
Posts: 147

Re: SAS studio - Use of Catalog

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.

New Contributor
Posts: 4

Re: SAS studio - Use of Catalog

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 ?

Super User
Posts: 5,383

Re: SAS studio - Use of Catalog

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
New Contributor
Posts: 4

Re: SAS studio - Use of Catalog

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 ?

Super User
Super User
Posts: 6,843

Re: SAS studio - Use of Catalog

[ Edited ]

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.

New Contributor
Posts: 4

Re: SAS studio - Use of Catalog

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 ?

Super User
Posts: 5,383

Re: SAS studio - Use of Catalog

Unfortunately not. See catalogs as compiled files.
Data sets are more forgiving between versions and hosts.
Data never sleeps
Ask a Question
Discussion stats
  • 8 replies
  • 503 views
  • 0 likes
  • 4 in conversation