Any hints?
Wolfgang
Use changestr to replace them with spaces.
...translate(data,' ','0d0a'x)
-wolfram
The above TRANSLATE will also translate any
x'0d' and/or
x'0a', not just the '0d0a'x pair.
If your REXX doesn't have CHANGESTR, here is an
equivalent REXX subroutine:
-----------------------------------------------------------------
changestr: procedure;parse arg o,h,n /*old, haystack, new*/
r=''; w=length(o); ;if w==0 then return n||h
do forever
parse var h y (o) _ +(w) h; if _=='' then return r||y
r=r||y||n
end
return r||h
________________________________________________________Gerard S.
"All implementation can be trusted to treat the <space> character as blank.
Additional characters that might be interpreted as blanks are <tab> (horizontal
tabulator), <ff> (formfeed), <vt> (vertical tabulator), <nl> (newline) and <cr>
(carriage return). The interpretation of what is blank will vary between machines,
operating systems and interpreters. If you are using support for national
character sets, it will even depend on the language selected. So be sure to check
the documentation before you assume anything about blank characters."
and tested, that regina/linux treats those as ws,
but couldn't find any docu about ws for OS/2-Rexx.
Of course I know translate (worked around it that way) and changestr,
but it concerns me, that more pgm's might be broken.
Wolfgang