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
 

 

how to solve the problem about CICS send/receive map?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
Young zhang

New User


Joined: 13 Jun 2008
Posts: 15
Location: china

PostPosted: Tue Sep 16, 2008 11:38 am    Post subject: how to solve the problem about CICS send/receive map?
Reply with quote

first, I will send a map, in this map, there are some information I want to show it to the user(so, I use sql command to select information and move to the particular field, like user-name).
then, I will receive map and get the user's input. user can change the information on the screen, that is like this: user change the previous user-name then receive map.
but if the user didn't change any information, so how does it give the feedback, is it abend? how to detect whether the field is changed? if abend, how to solve it.
thanks.
Back to top
View user's profile Send private message

dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6967
Location: porcelain throne

PostPosted: Tue Sep 16, 2008 11:53 am    Post subject:
Reply with quote

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/FINDBOOK?filter=CICS&SUBMIT=Find

that is a link for all cics documentation. pick your version.

there have been recent topics about this, I don't remember the answer, if your lucky Bill o'boyle will respond.
Back to top
View user's profile Send private message
Krishna Velamur

New User


Joined: 22 Aug 2008
Posts: 22
Location: Hyderabad

PostPosted: Tue Sep 16, 2008 12:55 pm    Post subject:
Reply with quote

Hi Young zhang,
If the user didn't change any field in the screen, the program won't abend. If you want to know whether any field is changed, there are two ways of doing it.

-> If any field is changed then the length will be greater than zero. Fo example if you have changed Field-1 then Filed-1L (copybook variable) will be greater than zero. So if any of the length variable is greater than zero, then you can say that the map is changed. (There are few exceptions like using del key to delete entire field for which you need to handle the keys)

-> Another method is declaring the previous values in comm area and comparing the current map field and the corresponding comm area field.

Hope this helps. Corrections are welcome.
Back to top
View user's profile Send private message
Young zhang

New User


Joined: 13 Jun 2008
Posts: 15
Location: china

PostPosted: Tue Sep 16, 2008 1:01 pm    Post subject:
Reply with quote

Hi Krishna Velamur,
Thank you for your help. that's very useful.
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 -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts CICS Transaction Timeout Hooman24 CICS 2 Sun Apr 16, 2017 2:16 pm
No new posts Strings with double quotes having pro... raja Arumugam All Other Mainframe Topics 11 Thu Mar 30, 2017 10:34 am
No new posts Receive a file using PCOMM macro Harald.v.K IBM Tools 0 Thu Mar 23, 2017 6:50 pm
No new posts Date and time format in CICS Chandru3183 CICS 2 Sat Mar 18, 2017 12:46 pm
No new posts Problem reading GTF trace output danik56 ABENDS & Debugging 7 Thu Mar 16, 2017 1:02 pm


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