IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

how to show default editable value on MFS


IBM Mainframe Forums -> IMS DB/DC
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
heredev

New User


Joined: 30 Mar 2008
Posts: 3
Location: kolkata

PostPosted: Tue Aug 26, 2008 5:44 pm
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
Sandy Zimmer

Active Member


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

PostPosted: Tue Aug 26, 2008 8:10 pm
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: 3
Location: kolkata

PostPosted: Mon Sep 01, 2008 3:25 pm
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
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> IMS DB/DC

 


Similar Topics
Topic Forum Replies
No new posts Running a Job with the Default User ID JCL & VSAM 2
No new posts Change Default Scroll Setting TSO/ISPF 1
No new posts Sort counter to show records combination JCL & VSAM 2
No new posts Define default volume for DSN storage... JCL & VSAM 8
No new posts how to show listing in physical locat... PL/I & Assembler 2
Search our Forums:

Back to Top