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

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