See if this works for you. For some strange reason its showing Blank output for me.
Could someone please correct me if its wrong? I used latest DFSort Manual to get this example.
I do understand that you are eager to help , but please understand the features before you can help. It only adds confusion by posting something which you think does not work even though it works as it is supposed to work. OP wanted a Julian date in CHARACTER format which is the Y4T format(C'ccyyddd'). Y4U is a packed decimal format(P'ccyyddd') which you cannot read unless you turn on the hex format.