BookmarkSubscribeRSS Feed
Flexluthorella
Obsidian | Level 7
Spoiler
I'm trying to create a workable dataset from the 2019 BRFSS data. https://www.cdc.gov/brfss/annual_data/annual_2019.html

issues:
LRECL =%endrec. - This errored out and wouldnt let me create dataset. There is no %let statement that specifies the value for this macro so I changed to LRECL = 2032 like in 2018 dataset. I dont understand why this is needed if the default is 32k


Variable "PAMISS1_" uninitialized - unsure why


Truncation of 1 or more variables 

1 REPLY 1
ballardw
Super User

I don't think the default lrecl value is 32k if you have set the RECFM=F or if you have changed the Lrecl system option.

 

Show the log of the code you submitted along with the entire step and any messages. Copy the text from the log and paste into a code box opened on the forum with the </> icon to preserve formatting of any messages SAS has provided.

 

From experience the line length of BRFSS data files is not standard across years. So you might want to set the LRECL to some larger value.

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

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
  • 1 reply
  • 681 views
  • 2 likes
  • 2 in conversation