View previous topic :: View next topic |
Author |
Message |
techman Beginner
Joined: 20 Jan 2006 Posts: 1 Topics: 1 Location: INDIA
|
Posted: Fri Jan 20, 2006 11:34 am Post subject: IMS DC- Restore Screen variables... |
|
|
Hi all,
I have a question in IMS DC.
Suppose I am populating the screen variables of a particular screen say ScrA and I need to throw a warning message intermediately and this I am doing by throwing a separate warning message screen ScrB. If I come back to the program after the user presses ENTER in the warning message screen,will the valuse that I had previously populated in the screen variables be there or not?
I know that this will not happen in CICS and we need a commarea. But what is the case of IMS DC? Your prompt info will be appreciated...
thanks,
techman. |
|
Back to top |
|
 |
krishnankalpathi Beginner
Joined: 31 Jan 2006 Posts: 1 Topics: 0 Location: chennai
|
Posted: Tue Jan 31, 2006 10:12 am Post subject: IMS DC |
|
|
You will lose all values on SCRA when you display SCRB and return to SCRA. There is no COMMAREA concept in IMS DC unless you make your program a CONVERSATIONAL type in which you can define a scratch pad area (SPA). You can store intermedaiate values in this and retrieve the values for SCRA.
Alternately you may store all values on SCRB as hidden fields .i.e those values on SCRA which you would like retained. When you throw the error , you display only the error field but you move all other values also to the SCRB so that when you come into the program you can retrieve those hidden values using the GU call to IOPCB. These values can then be used on SCRA. |
|
Back to top |
|
 |
|
|