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

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 7 replies
  • 470 views
  • 5 likes
  • 4 in conversation