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).

Catch up on SAS Innovate 2026

Dive into keynotes, announcements and breakthroughs on demand.

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