I have a map where there are two adjacent map fields with a unprotected followed by a protected one ( length 1 both).When I enter the value in unprotected field the cursor goes on to the adjacent protected field.Though it doesn't allow user to enter values since its protected but ideally it should move on to a next unprotected field.
Attributes of Protected Filed are PRotected NOrmal and Unprotected field is UNprotected NOrmal.
Surprisingly, this doesn't happen when the initial screen pops up, once you press an enter for some validation this problem occurs.
Can anyone please guide me to resolve this problem.Please let me know if I have to provide additional details.
After looking into the above macro I am little shocked as I can see one more DFHMDF field at POS=(7,60) .I have checked my map again there is no other field after field2 for this line.
Joined: 14 Jan 2008 Posts: 2501 Location: Atlanta, Georgia, USA
You need to change -
Code:
DFHMDF POS=(7,60),LENGTH=1,ATTRB=(PROT,NORM)
to -
Code:
DFHMDF POS=(7,60),LENGTH=1,ATTRB=(ASKIP,NORM)
In your map definition, ensure that SDF2 recognizes POS=(7,60) as ASKIP instead of PROT. Apparently, it "thinks" it should be Protected.
Because there isn't a DFHMDF label for this map-field, the ATTRB value needs to be defined properly, unless you add a label, then the symbolic map-field attribute-byte can be changed programmatically to DFHBMASK (ASKIP,NORM).