Convert RPG Datefield %DATE into a signed numeric

Convert RPG Datefield %DATE into a signed numeric To convert a RPG DATEFIELD to this numeric 8,0 field with no ‘/’ or ‘-‘ do this: D USADate 8s 0 USADate = %dec(%char(DateField:*iso0):8:0); Or another even neater function is this: I prefer this %UNS built in function, since it does not require me to specify length … Continue reading Convert RPG Datefield %DATE into a signed numeric