Help using Base SAS procedures

Retain

Accepted Solution Solved
Reply
Super Contributor
Posts: 256
Accepted Solution

Retain

pic.png


Accepted Solutions
Solution
‎06-24-2014 10:35 AM
Super User
Super User
Posts: 7,392

Re: Retain

Well, I have not seen a screenshot as a question before.  I assume you are asking for:

data want;

     set have;

     length lsttourn_no $200.;

     retain lsttourn;

     if tournament_no ne 0 then lsttourn=tournament_no;

run;

View solution in original post


All Replies
Solution
‎06-24-2014 10:35 AM
Super User
Super User
Posts: 7,392

Re: Retain

Well, I have not seen a screenshot as a question before.  I assume you are asking for:

data want;

     set have;

     length lsttourn_no $200.;

     retain lsttourn;

     if tournament_no ne 0 then lsttourn=tournament_no;

run;

☑ This topic is SOLVED.

Need further help from the community? Please ask a new question.

Discussion stats
  • 1 reply
  • 166 views
  • 0 likes
  • 2 in conversation