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

how to hold all Map variables after Enter key is pressed ?


IBM Mainframe Forums -> HomeWorks & Requests
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
akashsr_09

New User


Joined: 10 Apr 2021
Posts: 3
Location: India

PostPosted: Sun Sep 05, 2021 2:41 pm
Reply with quote

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
View user's profile Send private message
prino

Senior Member


Joined: 07 Feb 2009
Posts: 1306
Location: Vilnius, Lithuania

PostPosted: Sun Sep 05, 2021 9:19 pm
Reply with quote

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
View user's profile Send private message
Rohit Umarjikar

Global Moderator


Joined: 21 Sep 2010
Posts: 3053
Location: NYC,USA

PostPosted: Sun Sep 05, 2021 11:52 pm
Reply with quote

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
View user's profile Send private message
Rohit Umarjikar

Global Moderator


Joined: 21 Sep 2010
Posts: 3053
Location: NYC,USA

PostPosted: Sun Sep 05, 2021 11:54 pm
Reply with quote

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
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 -> HomeWorks & Requests

 


Similar Topics
Topic Forum Replies
No new posts JCL with variables JCL & VSAM 1
No new posts JCL Variables JCL & VSAM 1
No new posts reset/clear ALL application profile v... TSO/ISPF 3
No new posts REXX table content on panel will be r... CLIST & REXX 6
No new posts Expected data is not coming up on Fir... CICS 2
Search our Forums:

Back to Top