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: 6966
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 slow response time vasanthz All Other Mainframe Topics 1 Thu Jan 19, 2017 1:31 am
No new posts SYMNAMES problem jacobdng DFSORT/ICETOOL 7 Thu Dec 22, 2016 7:47 am
No new posts INDEPENDENT CICS TS 4.1 MRO REGION UP... Kyle Carroll CICS 0 Wed Dec 14, 2016 6:55 pm
No new posts CICS START AND CANCEL blayek CICS 1 Wed Dec 07, 2016 3:27 am
No new posts How does a called pgm know if its cal... Graeme Westerman COBOL Programming 4 Tue Nov 29, 2016 9:25 pm


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