If you are using ObjREXX you can use the nonstandard (i.e. on Windows, Unix but not on MVS, VM etc.) changestr() function. Sorry, I should have thought of this in my first appends 8-)
filedate = word(filedate, 1)
filedate = changestr('-', filedate, '')
/* above, '' = zero length string */...