adspace
WHAT IS NEED BY METION DATFMT AND TIMFMT IN H-SEPICITION IN
RPGLE?
Answer Posted / Deepak Malik
In an RPGLE (Report Program Generator Language) H-specification, DATFMT and TIMFMT are used to define the formats for data variables and timestamps, respectively. These specifications ensure that data is properly formatted when read or written by the program.
1. DATFMT: This specifies the format of numeric and character data variables. You can use predefined formats such as PIC X(20) to define variable lengths, or create custom formats using various format modifiers (e.g., Z, A, P, etc.).
2. TIMFMT: This specifies the format of timestamp variables. You can use predefined timestamps like S8TIME to represent date and time in an easy-to-read format, or create custom formats using various date and time modifiers.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers