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 …
Looking for Something?
Leave a ticket on the helpdesk if you cant find what you need or have a request for a new lesson or blog