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.

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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.

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