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 2025: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of 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
  • 421 views
  • 2 likes
  • 2 in conversation