Skipping the parts that look like they are working let's just look at the actual mistake.
198 proc print data=fit1(obs=5);
199 var dob dov CSfmt. txfmt.;
------
22
201
ERROR 22-322: Syntax error, expecting one of the following: a name, ;, -, /, :, _ALL_, _CHARACTER_,
_CHAR_, _NUMERIC_.
ERROR 201-322: The option is not recognized and will be ignored.
200 run;
You cannot specify a format in the middle of the VAR statement.
Also you probably do not want to list the same variable, dob, twice in the VAR statement. That will just produce the some information twice in the printout.
If you want PROC PRINT to use different formats than those already attached to the variables add a FORMAT statement.
The syntax for a FORMAT is statement is a series of variable names followed by the formats to attach to them. You can list one or more variables followed by one format specification, and you can do this multiple times in one FORMAT statement if you want.
If you want to just remove any formats that might already be attached from a set of variables then do not include the format specification. This list of variables must be the last list in the FORMAT statement for obvious reasons.