BookmarkSubscribeRSS Feed
Jianan_luna
Obsidian | Level 7

When I was doing the practice question from Programming 2 lesson 2. The question indicate to initialize trafficmax to 0. I did that, but from the answer, the retain statement is:retain traffixmax 0 MonthMax LocationMax. I am confused that add monthmax and locationmax on the end of statement. And what does that stand for? Thanks!

Jianan_luna_0-1594952442015.pngJianan_luna_1-1594952449848.png

 

1 REPLY 1
ChrisNZ
Tourmaline | Level 20

It means that  monthmax & locationmax   are retained too, but with no initial value (i.e. set to missing).

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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
  • 565 views
  • 0 likes
  • 2 in conversation