IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

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


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
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
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
Reply with quote

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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Using API Gateway from CICS program CICS 0
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts Calling an Open C library function in... CICS 1
No new posts How to 'Ping' a CICS region in JCL CICS 2
No new posts Parallelization in CICS to reduce res... CICS 4
Search our Forums:

Back to Top