View previous topic :: View next topic
|
Author |
Message |
crrindia
Active User
Joined: 02 Jul 2005 Posts: 124 Location: Gurgaon
|
|
|
|
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 |
|
|
IQofaGerbil
Active User
Joined: 05 May 2006 Posts: 183 Location: Scotland
|
|
|
|
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 |
|
|
crrindia
Active User
Joined: 02 Jul 2005 Posts: 124 Location: Gurgaon
|
|
|
|
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 |
|
|
IQofaGerbil
Active User
Joined: 05 May 2006 Posts: 183 Location: Scotland
|
|
|
|
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 |
|
|
crrindia
Active User
Joined: 02 Jul 2005 Posts: 124 Location: Gurgaon
|
|
|
|
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 |
|
|
|