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
 

 

To check if map variable changed or not

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

Active User


Joined: 02 Oct 2008
Posts: 151
Location: India

PostPosted: Sat Nov 13, 2010 3:27 am    Post subject: To check if map variable changed or not
Reply with quote

Hi,

Sorry. This topic was discussed several times however I didn't get the answer that I wanted.

For knowing whether the map variable has changed or not, it was told to check the attribute field 'L' > 0 and also 'F' = X'00' or X'02'. My reqt is that the screen will be populated with data when it loads at first. Then if the user changes any of the field, I need to save it else do nothing. Since the screen gets populated with data, the attribute field 'L' will be always > 0 and the 'F' attribute will be always '00'. Even if the user changes the data or not, this attribute values remains the same (L will be > 0 and F will be X'00' or X'02').

Is there any other way that I can know whether the values have changed other than checking with COMMAREA ?

Thanks
Vinu
Back to top
View user's profile Send private message

enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10231
Location: italy

PostPosted: Sat Nov 13, 2010 1:02 pm    Post subject: Reply to: To check if map variable changed or not
Reply with quote

Quote:
I didn't get the answer that I wanted.

You have three options available

1) tell us what frigging answer You want so we shall stop wasting time icon_evil.gif

2) get another ibmmainframes userid so You can self ask and reply in the most agreable way
- against the rules, but if You keep a low profile nobody will be able to notice

3) hire a consultant smart enough to give only the answers which please You
- the fee might be higher than usual for such a requirement
- I said smart, not competent

as I see it only options 2 and 3 are viable,
nobody with a bit of good sense will lend himself, without a proper fee,
to cutting and pasting stupid/incompetent/wrong/useless answers just to please You

the answer ...
check the length
is the common practice and appropriate one,
and confirmed by the manual ...

Quote:

6.5.5.1 Modified data
You can tell whether there was input from a particular map field by looking at the corresponding length (L) subfield. If the length is zero, no data was read from that field. The associated input (I) subfield contains all nulls (X'00'), because BMS sets the entire input structure to nulls before it performs the input mapping operation. The length is zero either if the modified data tag is off (that is, the field was sent with the tag off and the operator did not change it) or if the operator erased the field. You can distinguish between these two situations, if you care, by inspecting the flag (F) subfield. It has the high-order bit on if the field contains nulls but the MDT is on (that is, the operator changed the field by erasing it). See "Finding the cursor" in topic 6.5.7 for more information about the flag subfield.



if You cannot achieve what You want by following the standard and documented approach
something in Your code is just plain wrong

if the problem persists review Your training,
if the problem still persists a career switch might be appropriate

the tone of the answer ( and I am sure You will complain about it ) is the one that should be expected for remarks like the quoted one

it would be good for You to read and understand first of all
the CICS manuals at
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/Shelves/DFHASI05
for the whole shebang

specifically for the issue being discussed
http://publibz.boulder.ibm.com/cgi-http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/DFHP3B05/CCONTENTS?SHELF=DFHASI05&DN=SC34-6433-05&DT=20080118114556

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/DFHP3B05/6.5?SHELF=DFHASI05&DT=20080118114556

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/DFHP3B05/6.5.5.1?SHELF=DFHASI05&DT=20080118114556&CASE=

and also ( to make the most out of the questions You ask )
How To Ask Questions The Smart Way
http://catb.org/~esr/faqs/smart-questions.html
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7989
Location: Bellevue, IA

PostPosted: Sat Nov 13, 2010 4:32 pm    Post subject:
Reply with quote

Quote:
Since the screen gets populated with data, the attribute field 'L' will be always > 0
The manual quote Enrico provided proves that your comment is completely WRONG -- unless the MDT is set, the length field will be zero unless the data was changed by the terminal operator. Since you are starting with wrong assumptions, and you know the answer you want, why bother with a forum? We will not validate wrong answers for you.
Back to top
View user's profile Send private message
vinu78

Active User


Joined: 02 Oct 2008
Posts: 151
Location: India

PostPosted: Thu Nov 18, 2010 4:37 am    Post subject:
Reply with quote

Sorry Enrico for the question asked. It was due to my ignorance to how the MDT is set. I have given FRSET across each map field and it automatically sets the MDT.

Sorry everybody for the wrong message.

Rgds
Vinu
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Thu Nov 18, 2010 7:55 am    Post subject: Reply to: To check if map variable changed or not
Reply with quote

Hot to worry - the learning part is more important icon_smile.gif

Someone will be here if/when there are more questions.

d
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 Check Binary Values for symbols gandikk CA Products 3 Tue Mar 21, 2017 5:11 am
No new posts Writing on to GSAM variable length rohanthengal JCL & VSAM 6 Fri Mar 03, 2017 7:46 pm
No new posts Count Trailing Spaces in variable str... Virendra Shambharkar SYNCSORT 10 Thu Feb 02, 2017 12:23 pm
No new posts What is the command to check MODE of ... rohanthengal CLIST & REXX 7 Fri Nov 18, 2016 1:48 pm
No new posts Check System time(Minute) Using TIME1... balaji81_k DFSORT/ICETOOL 5 Fri Nov 11, 2016 10:53 am


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