BookmarkSubscribeRSS Feed
deleted_user
Not applicable
We use a huge set ( about 3000) of formats using proc format. This is done with proc format; value; syntax. I some how feel this is increasing the run time of the program. Is there an alternative way to do this?
3 REPLIES 3
Flip
Fluorite | Level 6
Rather than trying to explain it here is a paper showing how to use a dataset to create formats.
http://www2.sas.com/proceedings/forum2007/068-2007.pdf
sbb
Lapis Lazuli | Level 10 sbb
Lapis Lazuli | Level 10
It's unclear whether the PROC FORMAT execution is what you feel is "increasing the run time" or whether using the SAS formats in your DATA step code is where you have concern for run time.

I don't expect you will see significant run time improvements with using the CNTLIN= approach, however that approach will make it much easier to maintain your input/output data values used with these formats.

You can analyze your SAS execution time easily by not executing the PROC FORMAT code, and setting the NOFMTERR option to experiment. Review the SAS log information for DATA and PROC step execution times.

Scott Barry
SBBWorks, Inc.
data_null__
Jade | Level 19
Why don't you create a permanent format library. It "sounds" like you are running the PROC FORMAT code in each job possibly, via %INC. but the point is you don't need to do it that way. A library would be more efficient.

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