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

Reports in Cobol


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

New User


Joined: 25 Jul 2005
Posts: 15
Location: Hyderabad

PostPosted: Tue Oct 17, 2006 3:25 am
Reply with quote

Hi:

My question is

A report will be printing both detail and total records. If the input control field is equal to the hold area control field, what processing should be performed?

a. Print the total record for the record in the hold area and zero out totals
b. Print the detail record and increment the total being accumulated.

Could you please let me know what the right answer is.

Thanks
sriteja
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Tue Oct 17, 2006 5:28 am
Reply with quote

Hi Sriteja,

These kinds of questions are valuable to an employer to determine what a propective employee knows, but it's even more valuable to you because it gives you an opportunity to hone your programming skills.

Before we give you the ans why don't you tell us what your thinking on the subject is. You don't have to be right on in your ans. It can just be a starting point for the ultimate ans and it might get you to understand (and enjoy) the problem solving aspects of the job.
Back to top
View user's profile Send private message
sriteja

New User


Joined: 25 Jul 2005
Posts: 15
Location: Hyderabad

PostPosted: Tue Oct 17, 2006 6:32 am
Reply with quote

Hi mmwife:

I feel the answer is option b i.e. print the detail record and increment the totals.
But I have seen some reports where there are sub-totals in each page and a final total at the end.
So it altogether becomes a question of requirement of the report.

I posted this query to know if one of the two options is much desirable than the other.

Thanks
Sriteja
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 Replace each space in cobol string wi... COBOL Programming 3
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
No new posts Generate random number from range of ... COBOL Programming 3
Search our Forums:

Back to Top