BookmarkSubscribeRSS Feed
jadhavsada1_gmail_com
Fluorite | Level 6

25. What option in PROC FORMAT allows you to create a format from an input control data set rather than VALUE statement?

2 REPLIES 2
jakarman
Barite | Level 11

Base SAS(R) 9.4 Procedures Guide, Third Edition (using a function to create a format)   still the same procs

---->-- ja karman --<-----
Jagadishkatam
Amethyst | Level 16

The option which is used to create the formats from the input dataset is cntlin


the way the dataset is passed in the cntlin in as below

proc format cntlin=dataset;

run;

the required variables in the dataset for creating the formats this way are

fmtname /*a valid format name*/

start /*value*/

end /*which is again a value , but can be used only when we need to assign the format to a range*/

label /* this variable has the value which you want to actually assign*/

type /* mention C if character format and N for numeric format*/

Thanks,

Jag

Thanks,
Jag

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!

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
  • 370 views
  • 1 like
  • 3 in conversation