Thanks much @DaveHorne , looks like that is doing what I want.
1 data _null_ ;
2 infile "C:\Junk\BOM.txt" encoding=any;
3 input @ ;
4 _infile_ = transtrn(_infile_,'EFBBBF'x,trimn('')) ; *Remove the BOM ;
5 input x : $2.;
6 put x= ;
7 if x="cebc"x then do ;
8 put "found a mu and converted to u" ;
9 x="u" ;
10 put x= ;
11 end ;
12 run ;
NOTE: The infile "C:\Junk\BOM.txt" is:
Filename=C:\Junk\BOM.txt,
RECFM=V,LRECL=32767,File Size (bytes)=23,
Last Modified=25Mar2019:16:04:13,
Create Time=25Mar2019:16:04:13
x=A
x=B
x=C
x=μ
found a mu and converted to u
x=u
x=D
x=E
x=F
NOTE: 7 records were read from the infile "C:\Junk\BOM.txt".
The minimum record length was 1.
The maximum record length was 4.
... View more