Home Forums Main Forums SAS Forum 【Length Statement】

  • 【Length Statement】

     Datura updated 3 years, 9 months ago 1 Member · 1 Post
  • Datura

    Member
    February 2, 2021 at 6:39 pm

    To change the length of a char variable, the new length must be declared at first reference to the variable, thus before the variable is put into the PDV by INPUT or SET.

    For numeric variables, the length statement can be anywhere in the DATA step, because has effect only when writing out to the data set.

    This is a key difference between them, however, many data people don’t know it clearly though they use SAS for many years.

    .

Log in to reply.

Original Post
0 of 0 posts June 2018
Now