Hi @SaloméT and welcome to the SAS Support Communities!
PROC FREQ assigns numeric scores to the levels of the row and column variables (i.e., trt and tvrn in your case) which are used in the calculation of the first two CMH statistics. As you don't specify the SCORES= option of the TABLES statement, the default scoring method (SCORES=TABLE) is used. These scores equal the variable values for numeric variables and the row/column numbers (starting from 0, although the documentation states 1, but the results are the same) for character variables.
So, as long as all levels 1 through 7 of tvrn exist in the data (and the ORDER= option implies the order 1, 2, ..., 7), it doesn't matter if that variable is numeric or character because either way the scores are essentially the same. However, if categories 5 and 6 are missing (everything else being the same), the scores for a character variable tvrn would be 0, 1, 2, 3, 4, which is not equivalent to 0, 1, 2, 3, 6 (or 1, 2, 3, 4, 7 for that matter). The difference between levels 4 (mild to moderate) and 7 (severe) would appear smaller (than it likely should be) in the first case.
If the numeric values 1, 2, ..., 7 (i.e. equal "distances" between adjacent levels) are deemed appropriate to reflect the seven modalities, then you should use the numeric version of tvrn. Thus the difference between levels 4 and 7 will be handled in the same way, whether observations with levels 5 and 6 occur in the data or not.
You can add the SCOROUT option to the TABLES statement to make the scores visible in the output.