Home Forums SAS Programming Talks How to Process End of Data Step in SAS?


This topic contains 0 replies, has 1 voice, and was last updated by  blogger rajeev 7 months ago.

Viewing 1 post (of 1 total)
  • Author
  • #687

    blogger rajeev

    We can use END= option in SET and INFILE statements.

    data _null_;
    set mylib.mydataset end=last_value;

    Here end=option creates a temporary variable that initialises last_value to 0 and it finally became 1 when last observation or record is read.

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.