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

CICS Commarea Copybook


IBM Mainframe Forums -> CICS
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sree reddy

New User


Joined: 20 Jul 2007
Posts: 27
Location: bangalore

PostPosted: Mon Aug 24, 2009 10:32 pm
Reply with quote

in screen-1 i have 3 rows, in these rows i have a column which has %
if the user is satisfied with this 3 rows it is fine
else
he goes to screen-2 add additional rows.


Once he is done

before we insert into the table the sum of the column having % from both the screens should not be > 100

Could any one suggest right solution

My solutions is

i have a copybook xxxx in which i use occurs 3 times

to pass the data entered in screen 1 for 3 rows.

Could any one suggest right solution

Thanks
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8697
Location: Dubuque, Iowa, USA

PostPosted: Mon Aug 24, 2009 10:37 pm
Reply with quote

Quote:
Could any one suggest right solution
Probably not, since there is no one way to do this. You could pass the three values in DFHCOMMAREA, add the three values and pass the total in DFHCOMMAREA, write a TSQ record with the values (or just their total), just for starters. All of them are equally "right" in that, provided your code is correct, will produce the same results.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Mon Aug 24, 2009 11:33 pm
Reply with quote

Hello,

Has a single scrolling screen been considered? The code for an add (or an update) would require editing, but could be done form the same screen.

The values could be viewed, updated, and new entries added if the screen was designed properly. . .
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 -> CICS

 


Similar Topics
Topic Forum Replies
No new posts Using API Gateway from CICS program CICS 0
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
No new posts REXX code to expand copybook in a cob... CLIST & REXX 2
Search our Forums:

Back to Top