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

Tagged: 

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

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

    blogger rajeev
    Keymaster

    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.