I was updating some COBOL programs and realized that I was still using old COBOL time and date formats -meaning PIC 9(8) and PIC9(6).
Just for the heck of it, I decided to put some date and timestamp files in a record and see how difficult they are to use. Turns out, they are a little more difficult to use in COBOL than in RPG. (grin)
Does anyone have some samples or a reply bail tutorial on using Dates and TimeStamps in COBOL? What is the best way to use them? In particular, when some of these records are updated, there are date fields in the record itself, and a LAST_CHG_TS field .
I have gotten spoiled with RPG, especially the duration SUBDUR opcode. I am sure I have done this before in ILE COBOL, but honestly, I have forgotten how.
Anyone willing to share examples of or a basic tutorial for ILE COBOL using date and timestamp fields?
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2021 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
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.