DATA Step, Macro, Functions and more

format error for different OS

Reply
Regular Contributor
Posts: 241

format error for different OS

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!

 

Contributor
Posts: 41

Re: format error for different OS

Posted in reply to GeorgeSAS
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
Holland Numerics: Blog and Forums
http://blog.hollandnumerics.org.uk
Super User
Posts: 19,770

Re: format error for different OS

Posted in reply to hollandnumerics

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

Regular Contributor
Posts: 241

Re: format error for different OS

[ Edited ]
Posted in reply to GeorgeSAS

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!

Super User
Posts: 11,343

Re: format error for different OS

Posted in reply to GeorgeSAS

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.

 

 

Ask a Question
Discussion stats
  • 4 replies
  • 137 views
  • 2 likes
  • 4 in conversation