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

wanted to implement the Table handling logic.


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
crrindia

Active User


Joined: 02 Jul 2005
Posts: 124
Location: Gurgaon

PostPosted: Mon Jun 19, 2006 9:53 pm
Reply with quote

Hi All, I have two programs. i.e., one Main program and one Sub program. Main program sending some codes and the subprogram receiving those codes and doing the calcuations. but the calulations are same for all the codes. For this I wanted to implement the table handling logic.

My exact requirement is like..

I am receing some of the codes like AA, BB, CC, DD, EE, FF, GG, HH, II, JJ (10 codes), from main program to subprogram. what ever the code I receive, I have to do the same calculations for all kind of codes, and finally I wanted to send this result to the main program. For this I wanted to implement the table handling logic. Can any one of you explain to me how to implement the logic. Also if possible please give me an example code.

Thanks!
Rat.
Back to top
View user's profile Send private message
IQofaGerbil

Active User


Joined: 05 May 2006
Posts: 183
Location: Scotland

PostPosted: Tue Jun 20, 2006 8:20 pm
Reply with quote

I'm afraid your 'exact' requirements are not quite exact enough.
some sample input and expected output would be handy along with a bit more detailed specification.
Back to top
View user's profile Send private message
crrindia

Active User


Joined: 02 Jul 2005
Posts: 124
Location: Gurgaon

PostPosted: Wed Jun 21, 2006 6:36 pm
Reply with quote

Hi Thank you verymuch for your help on my issue. My Requirement is ...

I have two programs, i.e., one MainProgram and one SubProgram.

My main program sending some codes to the subprogram, and subprogram doing some calculations based on the codes and sending Report to the main program.

The below shown codes are coming from my main program

CE-TRGT-CD's
-----------------
PC
AC
PM
SV
AE
PL
UK
WB
BN
CD

After receiving those codes I wanted to do the following calcualations for each code and after calculating Send the report to the main program.

Count
Average smalltalk calc time
Longest smalltalk calc time
Total smalltalk calc time
Average roundtrip calc time
Longest roundtrip calc time
Total roundtrip calc time

REPORT looks like...

For ALL CE Targets
Total Calc Engine Calls: 2395
Average Smalltalk CE Time: 1.323 seconds
Longest Smalltalk CE Time: 5.123 seconds
Total Smalltalk CE Time: 123214.123 seconds
Average Roundtrip time BASS0127 to GRID: 1.56 seconds
Longest Roundtrip time BASS0127 to GRID: 7.32 seconds
Total Roundtrip time BASS0127 to GRID: 147612.24 seconds

For CE Target AE (Attributes and Eligibility Dates)
Total Calc Engine Calls: 2000
Average Smalltalk CE Time: 0.323 seconds
Longest Smalltalk CE Time: 0.123 seconds
Total Smalltalk CE Time: 100001.122 seconds
Average Roundtrip time BASS0127 to GRID: 0.56 seconds
Longest Roundtrip time BASS0127 to GRID: 0.32 seconds
Total Roundtrip time BASS0127 to GRID: 100001.24 seconds

For CE Target PC (Plan Calculations)
Total Calc Engine Calls: 395
Average Smalltalk CE Time: 1.000 seconds
Longest Smalltalk CE Time: 5.000 seconds
Total Smalltalk CE Time: 23213.001 seconds
Average Roundtrip time BASS0127 to GRID: 1.00 seconds
Longest Roundtrip time BASS0127 to GRID: 7.00 seconds
Total Roundtrip time BASS0127 to GRID: 47611.00 seconds


Thanks!
Rat..


IQofaGerbil wrote:
I'm afraid your 'exact' requirements are not quite exact enough.
some sample input and expected output would be handy along with a bit more detailed specification.
Back to top
View user's profile Send private message
IQofaGerbil

Active User


Joined: 05 May 2006
Posts: 183
Location: Scotland

PostPosted: Wed Jun 21, 2006 7:27 pm
Reply with quote

Not entirely sure why you need table handling logic here?
Loop/accumulation logic maybe!
Does you receiving program get all of the data all at once in a table
or
one record at a time?
Back to top
View user's profile Send private message
crrindia

Active User


Joined: 02 Jul 2005
Posts: 124
Location: Gurgaon

PostPosted: Thu Jun 22, 2006 12:20 pm
Reply with quote

Here I gave you an example of sub program and mainprogram. But coming to our actual application, we have mainframes and grid concepts. our main application sits in mainframes, but calcculations won't be doing in mainframes. Mainframe application sends data to grid for all kinds of calculations.

Here from mainframe application sending 10 codes, and in the grid doing calculations and after calculation it should send the report to the mainframes/end user like shown earlier.

Thanks!
Rat.
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 Load new table with Old unload - DB2 DB2 6
No new posts Pulling a fixed number of records fro... DB2 2
No new posts Multiple table unload using INZUTILB DB2 2
No new posts Check data with Exception Table DB2 0
No new posts Dynamically pass table name to a sele... DB2 2
Search our Forums:

Back to Top