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

I can’t find a way to enter the description for a format when I’m defining the format with PROC FORMAT.

The only method that I could find for entering the description of a format is by using PROC CATALOG after the format is already defined.

Is that right?

The “description” to which I’m referring is the text in the “Description” field in the results of PROC CATALOG

1 ACCEPTED SOLUTION

Accepted Solutions
SASKiwi
PROC Star

I think you are correct. The description you refer to is a general attribute on all catalog entries such as macros, graphs and so on and is not specific to formats. Hence you can only display or modify it using PROC CATALOG or CATALOG window:

 

PROC CATALOG CATALOG = LIBRARY.FORMATS;
MODIFY MyFormat FORMAT (DESCRIPTION = "My Format Description") ;
CONTENTS;
RUN ;
QUIT;

Using PROC FORMAT FMTLIB will not print out the catalog entry description. 

View solution in original post

4 REPLIES 4
SASKiwi
PROC Star

I think you are correct. The description you refer to is a general attribute on all catalog entries such as macros, graphs and so on and is not specific to formats. Hence you can only display or modify it using PROC CATALOG or CATALOG window:

 

PROC CATALOG CATALOG = LIBRARY.FORMATS;
MODIFY MyFormat FORMAT (DESCRIPTION = "My Format Description") ;
CONTENTS;
RUN ;
QUIT;

Using PROC FORMAT FMTLIB will not print out the catalog entry description. 

agoldma
Pyrite | Level 9

Thank you for confirming

Just a small comment about the example above: "MODIFY MyFormat FORMAT" should probably be "MODIFY MyFormat", and it might need the /entrytype= option after the description

 

I'm getting ready to submit a SAS Ballot Idea for this, but I want to check if I'm missing anything.

What I really want to do is to identify the person who modified the format catalog.

Some operating systems identify the person who created the file but not the person who modified it.

I would like to write the &sysuserid of the person who runs the PROC FORMAT into the description of the format.

Is there another way to identify the person who modified one format in the catalog?

 

Ideally, the sysuserid would be automatically written into the catalog -- in the same way that the date-time stamps are written automatically.

SASKiwi
PROC Star

I didn't test the code but posted from a paper I found Smiley Happy

 

It would certainly make sense to have a FORMAT description that you can display or modify in PROC FORMAT itself.

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

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
  • 4 replies
  • 1283 views
  • 3 likes
  • 2 in conversation