MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Testing if a mandatory field was changed

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> CICS and Middleware
View previous topic :: View next topic  
Author Message
nightrider
Beginner


Joined: 06 Dec 2005
Posts: 12
Topics: 4

PostPosted: Thu Jun 29, 2006 7:04 am    Post subject: Testing if a mandatory field was changed Reply with quote

How do I discover if a mandatory field (attrb=fset) of a screen was changed by the user?

(I know how to do it with a non-mandatory field.)

Greetings from Sao Paulo - Brazil

Ricardo
Back to top
View user's profile Send private message Send e-mail MSN Messenger
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12380
Topics: 75
Location: San Jose

PostPosted: Thu Jun 29, 2006 7:12 am    Post subject: Reply with quote

nightrider,

Check the MDT which is a Bit in the attribute byte indicating modification of field on screen.If the user keys in any data into the field, it turns the MDT ON indicating that the data is modified.

Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
nightrider
Beginner


Joined: 06 Dec 2005
Posts: 12
Topics: 4

PostPosted: Thu Jun 29, 2006 7:16 am    Post subject: Reply with quote

I never treat attribute byte at bit level. May you explain a little better?

In every case, thank you in advance
Back to top
View user's profile Send private message Send e-mail MSN Messenger
nightrider
Beginner


Joined: 06 Dec 2005
Posts: 12
Topics: 4

PostPosted: Thu Jun 29, 2006 7:18 am    Post subject: Reply with quote

Just in time:

We need to remember that user can press "erase eof" or "erase input" key. And, if I use attrb=fset, the field was ever send back from the screen to program when a receive is executed...

This is the reasons of my doubt about your answer.
Back to top
View user's profile Send private message Send e-mail MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> CICS and Middleware All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group