30 pts.
 DSPF
I have a field in the display file of length 13 CHAracters long. The first 4 characters contains the year, folloed by a hyphen, Next 2 characters contain the location(alphanumeric) followed by hyphen Last 5 characters contains numeric. How do i declare in the display file. when i enter a value in this field it shud be updated in the file in d same way..

Software/Hardware used:
ASKED: February 3, 2009  8:22 AM
UPDATED: February 3, 2009  3:23 PM

Answer Wiki:
Hi, You have 2 basic options :- 1. Declare the field as 13 characters long and validate the data in your RPG program. 2. Declare the field as 3 separate fields, move them to the correct positions in your RPG program. Regards, Martin Gilbert.
Last Wiki Answer Submitted:  February 3, 2009  9:52 am  by  Gilly400   23,625 pts.
All Answer Wiki Contributors:  Gilly400   23,625 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

For the display file use the EDTWRD and if needed the EDTMSK

Like Martin suggests, create a 13 char field preferably via a data structure with 3 separate fields having their own validation.

 1,245 pts.