The date/time type codes (*ISO,*DMY,*ISO0, etc) you use with %CHAR to convert from a date/time, or with %DATE / %TIME / %TIMESTAMP to convert to a date/time.
Are those simply keywords processed at compile time? Or is there a way to specify them as a field so you could write a custom procedure like this:
I don't need to do this, I'm just curious.
Are those simply keywords processed at compile time? Or is there a way to specify them as a field so you could write a custom procedure like this:
Code:
myProc(somedate:*ISO0); dcl-proc myProc dcl-pi myProc inDate char(10); inType ??? end-pi somevar = %date(inDate:inType); some other processing; end-proc
Comment