Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
how to show default editable value on MFS

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> IMS DB/DC
Author Message
heredev

New User


Joined: 30 Mar 2008
Posts: 2
Location: kolkata

PostPosted: Tue Aug 26, 2008 5:44 pm    Post subject: how to show default editable value on MFS
Reply with quote

how to show default editable value at an input field of a MFS screen when it is thrown for the first time.

example:

ENTER ROLL NO: 000000

here 000000 is the default value at the ROLL NO field. User can update the value by his ROLL NO.
Back to top
View user's profile Send private message
References
Sandy Zimmer

Senior Member


Joined: 13 Jun 2007
Posts: 438
Location: Wilmington, DE

PostPosted: Tue Aug 26, 2008 8:10 pm    Post subject:
Reply with quote

Try this - your position on the screen probably is not this, but always remember to allow for your attribute bytes.

DFLD POS=(15,42), LTH=6,ATTR=(MOD,NUM)

input
MFLD ROLL,LTH=6,JUST=R,FILL=C'0'

output
MFLD ROLL,LTH=8,ATTR=YES
Back to top
View user's profile Send private message
heredev

New User


Joined: 30 Mar 2008
Posts: 2
Location: kolkata

PostPosted: Mon Sep 01, 2008 3:25 pm    Post subject:
Reply with quote

Thanks for your help but the code did not work.

What i understand from the code is that - (correct me if i am wrong)
As the FILL=C'0' in specified for the input area, if no value is entered on the screen and ENTER is presed, zero will go to the program.

But objective is to show the default value when the scren is thrown for the first time.

I would like to state another example in this regard,

When the screen is thrown for the first time this will be displayed:
ENTER EMAIL: _____________@ibmmainframes.com

If i update the field it will become:
ENTER EMAIL: heredev______@ibmmainframes.com

So the UNDERSCORE is the default value for that input field and also is updatable.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> IMS DB/DC All times are GMT + 6 Hours
Page 1 of 1