Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
wanted to implement the Table handling logic.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: wanted to implement the Table handling logic.
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    Post subject: Re: wanted to implement the Table handling logic.
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    Post subject: Re: wanted to implement the Table handling logic.
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    Post subject: Re: wanted to implement the Table handling logic.
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    Post subject: Re: wanted to implement the Table handling logic.
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Insert a Row_number into table useit DB2 2 Tue Sep 19, 2017 1:07 pm
No new posts how to see when the last read access ... Mike 1304 DB2 1 Tue Sep 12, 2017 7:52 pm
No new posts PC (UTF-8) -> z/OS (EBCDIC) -> ... prino All Other Mainframe Topics 4 Fri Sep 01, 2017 1:47 am
No new posts Adding a userid to SMTP Security table Yolanda Harvey JCL & VSAM 1 Sun Aug 13, 2017 6:16 pm
No new posts Wanted to calculate TRK when i have B... Balu5491 JCL & VSAM 9 Wed Jul 19, 2017 5:43 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us