hi, i was trying this function,want to convert a Gregorian date to a standard date(yyyymmdd)., but it get RC=12 error. please see the code in pic. and why it can't work ,thanks!
You do not have the required permissions to view the files attached to this post.
I saw aleady in the manual that the manual uses COMPUTE. However, GOOGLE gives 500+ hits for its use with MOVE. I've checked a couple. No-one moaning it doesn't work.
NicC is right about the Reseved Word (unless changed recently). Most Reserved Words are individual words. This one, not.
See section 6.2.24 of the COBOL Language Reference manual on the MOVE statement. It explicitly states what a sending field may consist of -- and intrinsic functions do not fall under the sending field definition.