Sas

Asked • 04/11/19

What does `.Z` mean in SAS?

Apologies for such an entirely uninformed question, but I don't know any SAS and just need to know what one line of code does, so I hope someone can help. I have a loop over an array of variables, and an if clause that is based on a comparison to `.Z`, but this variable is defined nowhere, so I'm guessing this is some sort of SAS syntax trick. Here's the loop: ARRAY PTYPE{*} X4216 X4316 X4416 X4816 X4916 X5016; DO I=1 TO DIM(PTYPE); IF (PTYPE{I}<=.Z) THEN PUT &ID= PTYPE{I}=; END; So on the first iteration, the loop would check whether the value in `X4216` is smaller than `.Z`, and then...? `ID` is another varuable in the dataset, but I have no idea what's happening on the right hand side of that if clause. I've briefly consulted the SAS documentation to figure out that ampersands refer to macros, but my knowledge of SAS is to limited to understand what's happening. Can anyone enlighten me?

1 Expert Answer

By:

Rick A. answered • 04/11/19

Tutor
5 (33)

Experienced SAS Professional

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.