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.

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