BookmarkSubscribeRSS Feed
Cullima
Calcite | Level 5
Can anyone tell me where EG 4.2 looks for user-defined formats by default. I need to be able to create a permanent format which other users can use within EG. As far as I can see there is no way of setting this location from within the application.

Thanks
3 REPLIES 3
Patrick
Opal | Level 21
It's not SAS EG "looking" for the format library but the SAS session on the server where you run SAS.
You CAN add additional format catalogues in additional libraries which SAS uses then to look for formats.
You can do this during SAS invocation (i.e. in the autoexec on the server) or as part of the SAS code in SAS EG.

Here the doku (same for SAS 9.1.3 and SAS 9.2):
http://support.sas.com/onlinedoc/913/getDoc/en/lrdict.hlp/a000279102.htm

HTH
Patrick
Doc_Duke
Rhodochrosite | Level 12
If you just want to use one format library for the session or for EG invocation, you could create either a temporary or permanent format library using the LIBNAME task (see tools) in EG.
ChrisHemedinger
Community Manager
The default value of FMTSEARCH (libraries searched for format definitions) in EG is:

FMTSEARCH=(WORK LIBRARY EGTASK SASUSER)

EGTASK is a reference for EG that probably does not exist but EG adds for legacy purposes. But if you can assign a library named LIBRARY and map it to where your FORMATS catalog resides, SAS (via EG) should find your formats with no extra settings required.

Chris
Become an Explorer! Join SAS Analytics Explorers to learn and complete challenges that earn rewards!

Catch up on SAS Innovate 2026

Nearly 200 sessions are now available on demand with the SAS Innovate Digital Pass.

Explore Now →
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
  • 3108 views
  • 0 likes
  • 4 in conversation