|
Seth wrote: >I am wondering how to move a timestamp field to and Alpha field in free >format. According to the books, the reverse can be done with the >%TimeStamp BIF. I know I can jump out of free format to accomplish my goal >but would prefer to avoid that if possible. As you've seen, you can convert a character value to timestamp using BIF %TIMESTAMP. To convert a timestamp value to character, use BIF %CHAR. %CHAR can be used to convert any date, time, or timestamp value to character. What's new in V5R1 is that you can specify a date or time format. So for example, if you want to convert a date to *CMDY format, code "%CHAR(date:*CMDY)". Hans Boldt, ILE RPG Development, IBM Toronto Lab, boldt@ca.ibm.com
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.