----- Message from "Stone, Joel" <Joel.Stone@xxxxxxxxxx> on Thu, 29
Nov 2012 15:36:44 +0000 -----
Re: [COBOL400-L] how to extract the most common date format - YYYYMMDD
Thanks for your response.
I am trying to move a DATE-data type to the most common file output
format of YYYYMMDD.
For some reason when the output specifier is @Y%m%d (=YYYYMMDD),
then COBOL is not able to use the MOVE verb to move it to an alpha
field. (Works great for @Y/%m/%d).
Apparently the only solution is to use COMPUTE, which isnt
consistent with ILE COBOL in that any other MOVE numeric to alpha
works just fine.
COMPUTE works well, so I will use that.
It is frustrating that such a simple and common use - moving a date
to a column - works fine with slashes, but fails and requires a
work-around without slashes.
Every other OS & DB mgmt system handles this stuff consistently - at
least the ones that are still around:)
As an Amazon Associate we earn from qualifying purchases.
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.