BookmarkSubscribeRSS Feed
emitral
Calcite | Level 5

Hi, 

 

I have a SAS catalog developed many years ago in 32-bit system. It is not read in 64-bit SAS, unfortunately. I’ve found some workaround: firstly, convert it into cport file in 32-bit SAS and then import back in 64-bit SAS as shown in following codes

However, I’m not able to find any 32-bit SAS env. to apply this workaround. Is there any other workaround you can suggest? or Can I kindly request from you to run below code in 32-bit SAS if you have any chance?

 

Your helps would be more than appriciated.

 

Thanks

/*32-bit convert to cport file*/

libname my32 'c:\path-to-library'; /* path where Formats.sas7bcat exists */

filename trans 'c:\path-to-library\filename.cpt';  /* transport file you are creating */



proc cport lib=my32 file=trans memtype=catalog;

   select formats;

run;



/*64-bit import from cport file*/

libname my64 'path-to-newlib';  /* path to store the new Formats.sas7bcat file */

filename trans 'c:\path-to-library\filename.cpt';  /* same as in Step 1 above */



proc cimport infile=trans lib=my64;

run;

 

2 REPLIES 2
ballardw
Super User

Unfortunately not much option.

 

You might try contacting SAS tech support to see if they might do the export from a 32 bit system. Or someone on the forum might volunteer. Without your actual catalog running that code won't do much. If you intended to attach the catalog it didn't take and I believe the forum is a bit picky about the file formats you can attach.

 

Catalogs are not very portable so you should make sure that you have the code used to create them. With formats I would recommend using the CNTLOUT format when creating or updating your formats to a data set in the same library. Data sets tend to be a tad more tolerant and you can rebuild the format catalog using the CNTLIN option.

Kurt_Bremser
Super User

Maxims 26 & 27.

Always have the raw textual sources available, never rely on binary files for long-term storage of codes and code elements.

 

SAS technical support can come to the rescue here.

 

If you are in search of code stored as source entries in the catalog file, you might even find it with a good text editing tool like notepad++, but it is tedious work.

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

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