BookmarkSubscribeRSS Feed
sewa_bal_gmail_com
Quartz | Level 8

Dear All,

 

I am getting below error while creating the format.

I have imported both the data and format data within the same excel sheet in the window operating system.

 

PROC FORMAT CNTLIN=abcd;
RUN;

 

ERROR: File ABCD.FORMATS.CATALOG was created for a different operating system.

1 REPLY 1
Tom
Super User Tom
Super User

You cannot get that error message from that code.  In that code ABCD is referencing a dataset in the WORK library and not a format catalog.

Can you show the lines from the SAS log?

 

Format catalogs are not transferable across versions or operating systems. But SAS datasets normally are. So if you really do have a SAS dataset with the format definitions you can use PROC FORMAT to create a NEW catalog that will work with your current SAS session.

 

So to make the catalog MYNAME in the library that the MYLIB libref points to from the dataset name DATASET_NAME you would use this code.

proc format lib=mylib.myname cntlin=dataset_name ;
run;

suga badge.PNGThe SAS Users Group for Administrators (SUGA) is open to all SAS administrators and architects who install, update, manage or maintain a SAS deployment. 

Join SUGA 

CLI in SAS Viya

Learn how to install the SAS Viya CLI and a few commands you may find useful in this video by SAS’ Darrell Barton.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 461 views
  • 0 likes
  • 2 in conversation