BookmarkSubscribeRSS Feed
deleted_user
Not applicable
Given a format name (assuming it's not a nesting format for simplicity), how can I know if it's a picture format or not?

For a user-defined format, I can easily dump its definition into a dataset by the CNTLOUT option of PROC FORMAT, then the format is a picture format if there is a 'P' in column TYPE of that dataset.
However, the above method won't work for a SAS built-in format, since the name of the catalog that contains a built-in format is not shown in either dictionary.tables (or sashelp.vformat) and I cannot dump its definition with the CNTLOUT option.
2 REPLIES 2
Peter_C
Rhodochrosite | Level 12
is there a purpose behind this question (which I don't think can be answered)?
We might be able to help if we knew your purpose or the use you might make of the information.

hth
PeterC
deleted_user
Not applicable
Never mind, I just wanted to assume non-picture formatted numeric variables are categorized by their formatted values, while picture formatted numeric variables are continuous. If there's no way to tell it, I'll just hard code the variable types --- for example, a variable name with an 'i.' prefix means categorical, otherwise continuous.

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

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
  • 2 replies
  • 1094 views
  • 0 likes
  • 2 in conversation