View previous topic :: View next topic
|
Author |
Message |
akashsr_09
New User
Joined: 10 Apr 2021 Posts: 3 Location: India
|
|
|
|
Suppose I am on CICS screen and I have to perform an Updation to the Db2 and display the Map with the Updates as well. How can I do it ??
My understanding is that when PF keys are pressed all the Symbolic Map fields are deleted and you have to fetch from DB2 again and display Map from the start. and we do this i.e fetch from DB2 using Comm-area variables which does not get deleted even if PF keys are pressed. but I can't hold all symbolic map variables in Comm-area variables.
So how will I hold all updated values from CICS Map, once enter is pressed all symbolic map variables are deleted. or is my understanding is wrong ? May be on pressing PF keys all the Symbolic map variables gets deleted but the same does not happen when we press enter key. We can easily update our Db2 using Symbolic Map variables ??
I am a fresher and I don't have much idea. Kindly help. |
|
Back to top |
|
|
prino
Senior Member
Joined: 07 Feb 2009 Posts: 1315 Location: Vilnius, Lithuania
|
|
|
|
Why can't you hold all map variables in the commarea????
And don't post in a forum for experts as a clueless newbie! |
|
Back to top |
|
|
Rohit Umarjikar
Global Moderator
Joined: 21 Sep 2010 Posts: 3076 Location: NYC,USA
|
|
|
|
Your understanding is wrong .
When you type anything on a map and press enter or any P.F. or pa keys then the program is invoked and the first step should be to see what attention key is pressed using eib block variables and then make decisions .
If you press enter then do a receive map and you will get all the entered values from screen into I part of the corresponding label. All you got to do is validate before updating Db2 and once the update is successful just move all I variables to O and send the map along with message saying “Updated Successfully”. Note save all these fields as a part of commarea when you do return.
Hope it helps . If you want to do paging on a screen then look for TSQs in CICS. |
|
Back to top |
|
|
Rohit Umarjikar
Global Moderator
Joined: 21 Sep 2010 Posts: 3076 Location: NYC,USA
|
|
|
|
prino wrote: |
Why can't you hold all map variables in the commarea????
And don't post in a forum for experts as a clueless newbie! |
With due respect and just so you know , Anyone can post any type of questions , simple or expert level and as a Moderators we will move it to students section of this forum based on its complexity. |
|
Back to top |
|
|
|