BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
David_Billa
Rhodochrosite | Level 12

In one of our program, they have called the user defined format as shown below. Program is working fine and they have not created the format in that program. But I could not locate where this format is created. Any help?

 

type = put(material, $mattype.);
Category = put(type,$type.);
1 ACCEPTED SOLUTION

Accepted Solutions
Kurt_Bremser
Super User

@David_Billa wrote:

@Kurt_Bremser  Library Name - WORK and MEMBER NAME - FORMATS


Then the formats were created by code you ran in your current session. You need to work through all the codes you ran after starting your session.

 

View solution in original post

7 REPLIES 7
David_Billa
Rhodochrosite | Level 12

@Kurt_Bremser It's blank in path name, no values.

David_Billa
Rhodochrosite | Level 12

@Kurt_Bremser  Library Name - WORK and MEMBER NAME - FORMATS

Kurt_Bremser
Super User

@David_Billa wrote:

@Kurt_Bremser  Library Name - WORK and MEMBER NAME - FORMATS


Then the formats were created by code you ran in your current session. You need to work through all the codes you ran after starting your session.

 

Ksharp
Super User

As Kurt said. use DICTIONARY, and get the path name by PATHNAME() .

 

proc format ;
value fmt
1='asf';
run;


proc sql;
select * from dictionary.formats where source='C';
quit;

%let path=%sysfunc(pathname(WORK));
%put &=path.;

Ksharp_0-1654774926853.png

 

AllanBowe
Barite | Level 11

For info, this macro will query the dictionary table and return details of the attributes of all the formats in a table (including path):  https://core.sasjs.io/mp__getformats_8sas.html

/Allan
SAS Challenges - SASensei
MacroCore library for app developers
SAS networking events (BeLux, Germany, UK&I)

Data Workflows, Data Contracts, Data Lineage, Drag & drop excel EUCs to SAS 9 & Viya - Data Controller
DevOps and AppDev on SAS 9 / Viya / Base SAS - SASjs

SAS Innovate 2025: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!

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
  • 7 replies
  • 725 views
  • 5 likes
  • 4 in conversation