View previous topic :: View next topic
|
Author |
Message |
alamelu1984
New User
Joined: 20 Apr 2007 Posts: 40 Location: bangalore
|
|
|
|
Hi all,
In my application,i have a main menu screen from which i can navigate to another customer screen..
This navigation i need to do using function keys.
For the MAIN SCREEN MFS PRGM the code i have used is this:
MAIN screen: (here on keying in pf1 ,i shud be able to navigate to the customer screen)
PRINT ON,NOGEN
CUSTMF FMT
DEV TYPE=3270,DSCA=X'00A0',
PFK=(PFKIN,
1='/FOR CUSIO')
DIV TYPE=INOUT
(where CUSIO is the modname of the CUSTOMER SCREEN program)
and also the MID area of the MAIN SCREEN prgm contains:
CUSTMI MSG TYPE=INPUT,SOR=(CUSTMF),NXT=CUSTM
SEG
MFLD PFKIN,LTH=10,FILL=NULL
MFLD 'MAINO ',LTH=10
MSGEND
(where MAINO is the name of the transaction assigned to this program)
Is this piece of code right?????
regards
aalu |
|
Back to top |
|
|
Devzee
Active Member
Joined: 20 Jan 2007 Posts: 684 Location: Hollywood
|
|
|
|
Quote: |
Is this piece of code right????? |
What happens when you execute? |
|
Back to top |
|
|
alamelu1984
New User
Joined: 20 Apr 2007 Posts: 40 Location: bangalore
|
|
|
|
when i try to execute it..
it says :
DFS121 09:24:05 PARAMETER TOO LONG |
|
Back to top |
|
|
girish_s
New User
Joined: 31 Jul 2007 Posts: 45 Location: india
|
|
|
|
hi...
Quote: |
PARAMETER TOO LONG |
may be u should increase the pfkin length and give it a try... even i had got a similar sought of error... |
|
Back to top |
|
|
alamelu1984
New User
Joined: 20 Apr 2007 Posts: 40 Location: bangalore
|
|
|
|
thanx girish,
it worked...
|
|
Back to top |
|
|
|