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 RULES(NOEVENPACK) in cobol jackzhang75 COBOL Programming 4 Wed Mar 29, 2017 12:47 am
No new posts Splitting of single report to seperat... abdulrafi TSO/ISPF 4 Mon Mar 27, 2017 3:59 pm
No new posts SQL query not working in Cobol program. CuriousMainframer COBOL Programming 14 Wed Feb 22, 2017 5:56 pm
No new posts Execute TSO ACF commands from COBOL-I... supreethi.srid TSO/ISPF 0 Tue Feb 21, 2017 5:19 pm
No new posts Mainframe Interview Questions CICS,CO... akshathan Mainframe Interview Questions 6 Thu Feb 09, 2017 6:38 pm


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