BookmarkSubscribeRSS Feed
GeorgeSAS
Lapis Lazuli | Level 10

Hello,

when I try to open a catalog file(formats) in PC SAS,

it shows me an error:

    "ERROR: File xxxxx.CATALOG was created for a different operating system".

 

I know the formats was  created in UNIX, can I open it in Windows SAS?

 

Thanks!

 

4 REPLIES 4
hollandnumerics
Lapis Lazuli | Level 10
Format catalogs are dependent on platform AND bit, so catalogs created using Windows and UNIX are not compatible, AND Windows 32-bit and Windows 64-bit create incompatible catalogs too!

Much better to specify formats in programs for whatever platform you are using, because that way they are always compatible!
Philip R Holland
Recent book (see my blog site): "SAS Programming Experiences: A How-To Guide from a Power SAS User"
Reeza
Super User

I keep a file of format definitions that are compiled on startup.

GeorgeSAS
Lapis Lazuli | Level 10

If that is not compatible,how I could get information of the UNIX version formats at windows environment? or How could I create a windows version of formats base on the current UNIX version?Thanks!

ballardw
Super User

Your "solution" will involve either getting 1) the code used to create the formats, 2) a data set created using the Cntlout option with proc format and tranferred in a form you can read, 3) have the source export the catalogs containing the formats with Cport (and pray) or 4) cry.

At least that's what my options were.

 

 

sas-innovate-wordmark-gradient-background 3.pngSAS Innovate

Call for content now open!

It's your turn to help shape SAS Innovate 2027. Share your expertise and inspire the SAS community.

Submit your proposal →

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 4 replies
  • 2986 views
  • 2 likes
  • 4 in conversation