Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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 how to send just 10 rows in a CICS sc... Megha Gupta CICS 5 Thu Feb 23, 2017 6:57 pm
No new posts Need help in building a logic Benchwarmer All Other Mainframe Topics 4 Wed Feb 22, 2017 2:49 am
No new posts Join of more than one table dibyendumandal11111 DB2 6 Mon Feb 13, 2017 11:36 pm
No new posts SQL query to run through list of valu... Ni3-db2 DB2 14 Wed Dec 14, 2016 9:52 am
No new posts Need Rexx Program to Load in to DB2 T... Hareesh Verma CLIST & REXX 22 Tue Sep 20, 2016 2:59 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us