Desktop productivity for business analysts and programmers

fmtsearch in EG

Accepted Solution Solved
Reply
Frequent Contributor
Posts: 75
Accepted Solution

fmtsearch in EG

Hello,

I have created a user defined format in Enterprise Guide and I saved it in a permanent library. I know from Base SAS that in order to tell SAS to search in a particular library so as to find a format we use the fmtsearch option. How can we apply the fmtsearch option using thew GUI?

Thank you very much in advance,



Andreas


Accepted Solutions
Solution
‎03-10-2015 02:38 PM
Super User
Posts: 3,235

Re: fmtsearch in EG

If you store your permanent format in a catalog called LIBRARY.FORMATS (LIBRARY is usually one of the SAS automatically setup libraries) by using: proc format library = library, then you wont need FMTSEARCH as SAS looks in LIBRARY.FORMATS automatically.

View solution in original post


All Replies
Super User
Posts: 7,436

Re: fmtsearch in EG

You can include the ftmsearch option in the custom code to be sent before the execution of a task, or in the custom code to be sent when a connection to a workspace server is established. Or you could include it in the autoexec_usermods.sas file in the configuration directory of the respective workspace server.

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
Frequent Contributor
Posts: 75

Re: fmtsearch in EG

Hello Kurt,

Thanks for your answer. I was wondering if we could tell SAS EG to search in a particular library for formats through the GUI without using any code. Any ideas?

Thanks again,

Andreas

Super User
Posts: 7,436

Re: fmtsearch in EG

SAS IS code. EVERYTHING is done with code. Every task in EG is nothing but a code generator, and the code generated should be used as the starting pount for serious work.

Startup code is THE one means to automate SAS behaviour, and it is the place where you have to put your ftmsearch option. You just need to determine if you need it everytime for everyone using the workspace server (autoexec_usermods.sas, serverside) or just personally (then use custom code sent from EG).

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
Community Manager
Posts: 2,889

Re: fmtsearch in EG

Solution
‎03-10-2015 02:38 PM
Super User
Posts: 3,235

Re: fmtsearch in EG

If you store your permanent format in a catalog called LIBRARY.FORMATS (LIBRARY is usually one of the SAS automatically setup libraries) by using: proc format library = library, then you wont need FMTSEARCH as SAS looks in LIBRARY.FORMATS automatically.

Frequent Contributor
Posts: 75

Re: fmtsearch in EG

Thanks for your answer! It works! SA EG searches for formats in the library work and i the permanent library with the name library.

Thanks again,

Andreas

🔒 This topic is solved and locked.

Need further help from the community? Please ask a new question.

Discussion stats
  • 6 replies
  • 733 views
  • 2 likes
  • 4 in conversation