Hi Inp
If I understand that right then you want to have SAS to solve an issue which you have with your data.
It sounds to me as if you will need some data cleansing after reading the data. You could use translate for that - translating a defined set of special characters to blanks.
More general would be to use Perl Regular Expressions (have a look at PRXCHANGE), "\s" matches all whitespace characters - that is what most probably then shows up as a 'box'. So just translate all whitespace characters to blanks.
Something close to the following should do the job:
data ...
PID=PRXPARSE ('s/\s/ /io');
infile .... truncover;
input @;
call PRXCHANGE(PID,-1,_infile_);
input @1 var1 @3var2;
...
Your file and all the processing happens on the Mainframe (EBCDIC) but you see the result in an 'ASCII environment (EG?). It could be (less likely) that there is some problem with the translation (trantab) between this two environments.
To see the special character in your Mainframe file use your Mainframe editor and type on the command line "Hex on"; a tab (the most likely problem char) would have the Hex value 05.
HTH
Patrick
P.S: forget about 'pad', just use 'truncover'
Message was edited by: Patrick
... View more