Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
MDT info

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

New User


Joined: 13 Dec 2007
Posts: 14
Location: india

PostPosted: Fri Sep 20, 2013 3:32 pm    Post subject: MDT info
Reply with quote

Hi ALL,

My concept regarding MDT is;
When MDT is on (i.e.1) then only data for a particular field (say F1) will be sent to application program from a terminal.


I have two fields on my CICS screen say F1 and F2.
Using programing I am changing the attribute byte of F2 but not changing Attribute byte of F1 and issuing SEND MAP command (without DATAONLY option) and screen has been displayed on the terminal.

Now my question is;
Now, when I press Enter and receive the MAP in program.;
Then what will be Attribute of F1 and F2 (will it be same what program sent or will it be same as while defining the MAP)

I am asking this question because
For F1 while defining BMS map MDT is ON, but program is moving X’00’ in F1+A.
For F2 while defining BMS map MDT is ON, but in program is moving X’E5’ in F2+A

So I am not sure which Attribute will be in effect when I receive the MAP in program.
Please guide me.
Back to top
View user's profile Send private message

Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8201
Location: Dubuque, Iowa, USA

PostPosted: Fri Sep 20, 2013 4:25 pm    Post subject:
Reply with quote

Think of the map value as the default value. You can override this value in two ways:
1. Change the field attribute in your program before you send the map
2. Change the data in the field

In the first case, what the map contains won't matter -- what will matter is what you changed the attribute byte to (and whether or not the data in the field was modified, of course).

In the second case, changing the data means you'll get the field data back when you do the RECEIVE MAP -- even if the MDT was cleared in the program.

The attribute in effect when you do the RECEIVE MAP depends upon several things -- what the default attribute in the map is, whether or not you have changed it in the program, and finally whether or not the data in the field was changed and thus forcing the attribute byte to be changed.
Back to top
View user's profile Send private message
colin777

New User


Joined: 06 Jun 2013
Posts: 19
Location: Singapore

PostPosted: Mon Sep 23, 2013 12:07 pm    Post subject:
Reply with quote

Excellent Robert,

The MDT (Modified Data Tag) is the 7th bit in the Attribute byte. Any data entered into an unprotected field even a blank will cause the MDT to be set to 1 and therefore the Attribute byte will reflect that there is data in this field.

When the RECEIVE MAP is issued BMS will retrieve those fields where the MDT has been set to 1 and as such this data will read into the 'I' side of your Cobol 01 level...MAPNAMEI

Of course the program can set the MDT on the SEND MAP and BMS will send this data back even if it's a protected field on the screen. This is needed when you dont want the User to enter any data into the field, but you still want the data back for editing.

So remember even if there is only 1 MDT turned on, the RECEIVE MAP will NOT cause Mapfail exceptional condition.

HTH

Colin777
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 Need info on EIBCPOSN value in IBM FA... subratarec CICS 11 Wed Jul 12, 2017 3:45 pm
No new posts Need info with DBRC recovery ashek15 IMS DB/DC 0 Mon Jan 23, 2017 6:43 am
No new posts IMS Database backup info ashek15 IMS DB/DC 14 Wed Nov 16, 2016 5:29 am
No new posts Utility to extract dsn info from conc... Lynne Schuler PL/I & Assembler 12 Tue Jan 26, 2016 6:36 am
No new posts print out the correct info in LOOP? jackzhang75 CLIST & REXX 7 Wed Dec 23, 2015 10:39 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us