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
Opal | Level 21

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
Opal | Level 21

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
Opal | Level 21

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

Innovate_SAS_Blue.png

Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

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.

Get the $99 certification deal.jpg

 

 

Back in the Classroom!

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

View all other training opportunities.

Discussion stats
  • 4 replies
  • 1143 views
  • 3 likes
  • 2 in conversation