Good evening, Monika, and welcome to the SAS Support Communities!
The Wilcoxon signed rank test is provided by PROC UNIVARIATE, not PROC NPAR1WAY (see documentation: Tests for Location). First, you compute the difference between the two values for each pair, then you use this difference as the analysis variable in a PROC UNIVARIATE step. If you haven't created a SAS dataset from your data yet, you can compute the differences in the same data step, as shown below (I use datalines, but you would typically read from an external file specified in an INFILE statement):
/* Read raw data and compute differences */
data want;
input @1 site $25.
@26 n2000 numx5.
@32 n2017 numx5.;
d=n2017-n2000;
cards;
Bratislava I-V 3,20 6,00
Malacky 0,50 0,90
Pezinok 0,80 1,20
Senec 0,40 0,20
; /* ... more data ... */
/* Perform Wilcoxon signed rank test */
proc univariate data=want;
var d;
run;
If your data is already available in a SAS dataset (let's call it HAVE), simply compute the differences like this:
data want;
set have;
d=n2017-n2000;
run;
The output from PROC UNIVARIATE contains a table "Tests for Location," in which you find the test statistic and p-value of the (two-sided) Wilcoxon signed rank test in the third row (highlighted below):
Tests for Location: Mu0=0
Test -Statistic- -----p Value------
Student's t t 1.277798 Pr > |t| 0.2912
Sign M 1 Pr >= |M| 0.6250
Signed Rank S 4 Pr >= |S| 0.2500