I have a following code:

```
  visitnum = put(visitn,visitnumber.);

```

which is directed to

```
  proc format;
   value visitnumber
  'Screening Assessment' = 1
  'Treatment Visit - Day 1' = 2
  'Treatment Visit - Day 7' = 3
  'Treatment Visit - Day 14/15' = 4
  'Follow-Up Visit - Day 28' = 5
 run;

```

However when I output the 'visitnum' variable, it gives the 'Treatmen' as the output for the matching columns.