Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

MDT status check in a program

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
View previous topic :: :: View next topic  
Author Message
mfguy

New User


Joined: 31 Jul 2003
Posts: 4

PostPosted: Thu Jul 31, 2003 11:30 am    Post subject: MDT status check in a program
Reply with quote

hi all,
As I have limited exposure to online programs,Iam raising this
query.How do we check the status of the MDT ,a attribute bit, in a application program ie whether it is 'on' or 'off' ,before issuing receive map command.Suggestions appreciated
Thanks
mfguy
Back to top
View user's profile Send private message

mcmillan

Site Admin


Joined: 18 May 2003
Posts: 1202
Location: India

PostPosted: Fri Aug 01, 2003 8:49 am    Post subject: RE
Reply with quote

Using the FLAG FIELD (FIELD+F)
Back to top
View user's profile Send private message
DNelsonPNC

EXPERT


Joined: 15 Jun 2003
Posts: 10
Location: North Carolina

PostPosted: Tue Sep 02, 2003 1:43 am    Post subject: MDT
Reply with quote

Why would you want to know if MDT is on before you RECEIVE the map?

The whole purpose of the MDT is to tell the terminal what data it is to send back to the application. When you receive the data, any field that has data in it has the MDT on!

On OUTPUT you set the MDT ON for any data you need the terminal to send back to the APP regardless of the user keying anything in that field.
Back to top
View user's profile Send private message
prakash271082

New User


Joined: 09 Sep 2005
Posts: 53

PostPosted: Thu Sep 22, 2005 3:49 pm    Post subject: Re: MDT status check in a program
Reply with quote

Hi,
MDT and FSET go hand in hand. To answer your question, How to check whether MDT is on or off? .
As per my knowledge, I would consider an Unprotected field, when I am receiving the map, I would leave that field untouched (i.e left with previous record's value). Now if the Receive operation receives that value ( previous value itself ), I would be confirming that MDT is on.
Another way, it might look silly is that directly seeing the Macro code for FSET option in DFHMDI ( Map definition Macro ).
Any way you can also dynamically make MDT to be on for particular fields by using,
MOVE DFHBMFSE TO XXXA.
where xxx is field label.
A is attribute byte check.
Hope this helps.
Back to top
View user's profile Send private message
doucette222

New User


Joined: 10 Dec 2005
Posts: 2

PostPosted: Sat Dec 10, 2005 9:52 pm    Post subject: Re: MDT status check in a program
Reply with quote

isn't it that a field has length > 0 (symbolic map L field) that tells you its been transmitted and therefore has mdt on? its not just that it 'has data in it' as the field could be blank which i'd consider as no data. blank field may be transmitted if spaced out or erased out i believe. if spaced out i believe the L field will be > 0. if erased out i don't know what L field will be. so that is an exception? in that exceptional case of erased field the F field will have hex 80 in it.

receive the map, then check the 'L' FIELD ON THE SYMBOLIC MAP TO SEE IF FIELD HAS LENGTH > 0. IF IT DOES, THEN PROCEED WITH EDITING ETC FOR THAT FIELD. what to do about the exception of erased field i'm not sure
Back to top
View user's profile Send private message
appasi

New User


Joined: 12 Dec 2005
Posts: 20
Location: Bangalore

PostPosted: Thu Dec 15, 2005 1:23 pm    Post subject: Re: MDT status check in a program
Reply with quote

Hi,
If you receive the field means
MDT is ON for that field , If you
populate the field MDT of that field
automatically gets ON.
While send if you want to make MDT ON
for particular field dynamically then you can use
move DFHBMFSE to xxxxxA.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Executing OO COBOL program invoking J... Virendra Shambharkar COBOL Programming 2 Tue Jan 10, 2017 6:37 pm
No new posts Need Suggestion on COBOL program vickey_dw COBOL Programming 5 Thu Jan 05, 2017 10:55 pm
This topic is locked: you cannot edit posts or make replies. session stuck in TPX with status ACL amitc23 CA Products 1 Tue Dec 13, 2016 12:53 pm
No new posts I can not compile my program PL1 V3.R... Miguel Fernandez PL/I & Assembler 13 Tue Dec 06, 2016 8:30 pm
No new posts IMS BMP program causes 878 system abend Artemk IMS DB/DC 7 Tue Nov 22, 2016 8:26 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us