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
 

 

Reports in Cobol

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: Reports in Cobol
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    Post subject:
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    Post subject: Re: Reports in Cobol
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    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 Executing OO COBOL program invoking J... Virendra Shambharkar COBOL Programming 2 Tue Jan 10, 2017 6:37 pm
No new posts OO COBOL compile error Virendra Shambharkar COBOL Programming 3 Tue Jan 10, 2017 6:05 pm
No new posts Produce Mainframe Dash Board Reports ... sdcarlson53 All Other Mainframe Topics 2 Thu Jan 05, 2017 11:01 pm
No new posts Need Suggestion on COBOL program vickey_dw COBOL Programming 5 Thu Jan 05, 2017 10:55 pm
This topic is locked: you cannot edit posts or make replies. RANDOM Function in COBOL swapnil781 COBOL Programming 2 Tue Nov 15, 2016 6:17 pm


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