05-11-2016 02:20 PM
I have this data and x variable which I added using this code below the figure:
Data Test; Set T1; X = _n_; Run;
What I needed actually was to add the variable X with assigning 1 to each observation.
so I changed the statement to
Data Test; Set T1; X = 1; Run;
And it did not work ( it says data has 0 observations).
Need further help from the community? Please ask a new question.