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

Hi everyone,

I have a library that I have created using DI studio that contains some datasets and also some user-defined formats that I want the datasets use.

My goal is that when a user opens the data in enterprise guide they see the data with the correct user-defined formats applied.

I have put a cheat into the advanced options on the library metadata by setting the 'Other option(s) to be appended' field to be

; options fmtsearch(mylib)

this means than when I right click on the library in DI studio and select 'View Libname' it correctly shows as

LIBNAME mylib BASE "mypath"; options fmtsearch(mylib);

and running this code in enterprise guide lets me view the datasets with the correct format.

However, in a new EG session when I browse to this library in the enterprise guide server list or metadata folders and open the datasets to view the data, the data does not show in the correct format.

Does anyone know how I can check to see why enterprise guide is not running the full libname statement that I defined it to run in the metadata?

Thanks in advance

Tim.

1 ACCEPTED SOLUTION

Accepted Solutions
LinusH
Tourmaline | Level 20

This is probably because EG uses the META engine by default if the library isn't pre-assigned. I have no idea how such assignment will work with your cheat, but it doesn't sound like a best practice...Smiley Wink

Why don't you put the formats in the SASApp\SASEnvironment\SASFormats location (APFMTLIB), and the they will be available by default?

Data never sleeps

View solution in original post

3 REPLIES 3
LinusH
Tourmaline | Level 20

This is probably because EG uses the META engine by default if the library isn't pre-assigned. I have no idea how such assignment will work with your cheat, but it doesn't sound like a best practice...Smiley Wink

Why don't you put the formats in the SASApp\SASEnvironment\SASFormats location (APFMTLIB), and the they will be available by default?

Data never sleeps
TimCampbell
Quartz | Level 8

Thanks LinusH,

APFMTLIB worked exactly as I needed.

Tim

SASKiwi
PROC Star

Another option is to create a SAS library with a LIBREF of LIBRARY. SAS automatically searches this LIBREF for any stored formats without using FMTSEARCH.

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

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
  • 3 replies
  • 1667 views
  • 0 likes
  • 3 in conversation