I'm trying to create unique file names for files being FTP'd from out HP e3000 to a workstation which doesn't support long file names.

I figured the best thing to use would be a date time stamp. So using a JCL I can create a file name that looks like "200006281604", but this is too long for use on the target machine.  If I convert this to a base 36 number ([0-9,A-Z]) it will always fit into 8 digits for all the date ranges I can foresee (Y28k or thereabouts).

Anyway, my question is: has anyone written a routine in JCL to convert numbers between various bases?  Does anyone have any suggestions on how to go about this?

Any and all suggestions gratefully appreciated.