BookmarkSubscribeRSS Feed
KK_QQ
Calcite | Level 5

I used the below code to create permanent format using university edition, the log has no problem. 

proc format library=orion.MyFmts cntlin=country;
run;

 

But I can't see the catalog create under the orion, I deleted the library=orion.MyFmts, it still doesn't create format catalog uner work.
 
I don't know whehter it's because of university editon. can anyone help? Thanks!
8 REPLIES 8
Reeza
Super User

Library are single level so try including only Orion after library, not Orion.myfmt

See examples here

http://www.ats.ucla.edu/stat/sas/library/formats.htm

KK_QQ
Calcite | Level 5
It's not working either if only including Orion. It suppose create format catalog.
Reeza
Super User

What does not working mean? 

Do you get errors? If so, post the log. 

Reeza
Super User

@Reeza wrote:

Library are single level so try including only Orion after library, not Orion.myfmt

See examples here

http://www.ats.ucla.edu/stat/sas/library/formats.htm


My bad, catalogs are referenced in the manner used, ie libname.catalog_name

 

 

Reeza
Super User

I'm also not sure SAS UE shows catalog, so check for the presence using PROC datasets. 

Tom
Super User Tom
Super User

Are you sure your input control dataset is in the proper format for creating formats? 

What happens if you just define you formats using a VALUE statement instead?

KK_QQ
Calcite | Level 5

Actually, it does create the format catalog, when using below code

 

proc format library=orion.MyFmts fmtlib;
select $country;
run;

 

proc format library=orion.MyFmts fmtlib;
select $country;
run;

you can see the results. And when you used the format, it works. But just can't show up under the liberary. 

Astounding
PROC Star

Format libraries use a default catalog name.  You are overriding that by specifying the two-level name.  When creating the format, just specify library=orion, instead of library=orion.MyFmts and that should put the new format into the default library.

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!

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
  • 8 replies
  • 1641 views
  • 0 likes
  • 4 in conversation