|
----- Message from "Stone, Joel" <Joel.Stone@xxxxxxxxxx> on Thu, 29
Nov 2012 15:36:44 +0000 -----
To:
"cobol400-l@xxxxxxxxxxxx" <cobol400-l@xxxxxxxxxxxx>
Subject:
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:)
Thanks again.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.