BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
jenim514
Pyrite | Level 9

Hi!  I am trying to open formats that were created in 32 bit, but I can figure out how to do this?!  I have the syntax that I run containing all the formats so I can work with the tables.  But since My computer upgraded, I cannot run the formats.

 

So, say my syntax is saved as:  H:\file\read formats.sas

 

I tried using cimport....but not working correctly.  I may be doing this totally wrong.  I'm not clear on how/ where I should be creating new or temp files and what to replace...   

 

Thanks for your help!!

 

libname project "H:\File";
 filename formats "H:\File\read formats.cpt";

 proc cport library=project file=formats;
 run;


libname project "H:\File";
 filename outfile "H:\file\read formats.cpt";

 proc cimport library=project file=outfile;
 run;
1 ACCEPTED SOLUTION

Accepted Solutions
ballardw
Super User

Your best bet is to run the code that generated the formats originally.

 

Next would be to run proc format with the cntlout option on a 32 bit machine that can read the formats. Then you use the created dataset with the Cntlin option on proc format to create the formats.

 

Other options are pretty much all going to start with the a 32 bit machine to read them.

 

Catalogs are generally not cross platform accessible and the formats are one of those.

View solution in original post

3 REPLIES 3
ballardw
Super User

Your best bet is to run the code that generated the formats originally.

 

Next would be to run proc format with the cntlout option on a 32 bit machine that can read the formats. Then you use the created dataset with the Cntlin option on proc format to create the formats.

 

Other options are pretty much all going to start with the a 32 bit machine to read them.

 

Catalogs are generally not cross platform accessible and the formats are one of those.

LinusH
Tourmaline | Level 20

CIMPORT should work, but your CPORT must be done from a SAS 32 bit session.

Also, you libname must point to your library where your format catalog is stored. Is that really in directory "File"?

Data never sleeps
RW9
Diamond | Level 26 RW9
Diamond | Level 26

Yes, you have hit a good examplpe of why not to use proprietary file formats.  Unfortunately there is no way to open a 32bit catalog on a 64bit install, and vice versa.  You would need to, as @LinusH and @ballardw have suggested, go back to the source, and resend the information in a non-proprietary format, suuch as plain text program, and then recreate that in the new bit install.  This really highlights why we should all be moving away from these formats, to plain open formats which can be read across operating systems/machines and as such can be used as a reason to keep formats and such like in text files, which can be built at startup, rather than catalogs.  I for instance have a backlog of studies which, for one reason or another, I only have catalogs containing macros and formats which are now nothing more than dea files, and programs which do not work anymore because of them, and i have no way of going back to source.

Open file formats!

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!

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.

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
  • 3 replies
  • 2115 views
  • 1 like
  • 4 in conversation