Tony Duncan
New User
Joined: 21 Jan 2008 Posts: 1 Location: Oklahoma, USA
|
|
|
|
It has been several years since I coded my last MFS map and I could use a little help. I created a new app and it was similar enough to an old one that I was able to use a copy of the old MFS map to create the new map. The basic setup parms are the same for both maps. When I execute the other transaction, the autoskip works fine. However, when I execute my transaction, the cursor stops on the next field, instead of skipping to the intended field.
DO 16,SUF=01
ACTION DFLD POS=(10,02),LTH=1,ATTR=MOD
CTLNBR DFLD POS=(10,04),LTH=6,ATTR=(PROT,MOD)
MONTH DFLD POS=(10,11),LTH=2,ATTR=(PROT,MOD,NUM)
DAY DFLD POS=(10,14),LTH=2,ATTR=(PROT,MOD,NUM)
YEAR DFLD POS=(10,17),LTH=2,ATTR=(PROT,MOD,NUM)
ASSIGNTO DFLD POS=(10,21),LTH=6,ATTR=MOD
METHOD DFLD POS=(10,30),LTH=1,ATTR=MOD
ENDDO
This code is functionally identical to the other transaction. When I enter a value for ACTION in the new transaction, the cursor jumps to CTLNBR instead of ASSIGNTO, like it does with the old transaction. I tried removing the MOD parm from the fields between ACTION and ASSIGNTO and got the same results.
I did a search and found one other post having to do with Autoskip, which the OP did not use.
Any assistance would be greatly appreciated.
Thanks,
Tony |
|
Rohit Umarjikar
Global Moderator
Joined: 21 Sep 2010 Posts: 3053 Location: NYC,USA
|
|
|
|
Tony,
I don't know much on MFS but upon search, I found below link and the extract from that would might help you.
publib.boulder.ibm.com/infocenter/dzichelp/v2r2/index.jsp?topic=%2Fcom.ibm.ims11.doc.sur%2Fims_mfslangmfldstmt.htm
Code: |
ATTR=NUM/ALPHA
Specifies whether the field should have the numeric attribute. The numeric attribute specifies that the Numeric Lock feature (automatic upshift of data entry keyboard) will be used by the 3275/3277 or 3276/3278. If NUM and PROT are specified for the field, the auto-skip feature is used. That is, upon entry of a character into the last character location of an unprotected field, the cursor automatically skips the field with the NUM and PROT attribute specifications and is positioned to the first character location of the next unprotected field. If an undefined field, as described in the ATTR= parameter, follows the filled unprotected field, the auto-skip feature is used. This parameter, in conjunction with the PROT parameter, is used to lock the COPY function. See "PROT" for details. |
|
|