Hello,

let's say I have a variable x with data from 1 to 10. How can Stata save the maximum of x (10) as placeholder, which can be used in an if loop or forval i=1/.....

Thank you!