View previous topic :: View next topic
|
Author |
Message |
sungang77
New User
Joined: 03 Nov 2005 Posts: 46 Location: Shanghai, China
|
|
|
|
Question:
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?
Choice 1
Print the detail record and increment the total being accumulated.
Choice 2
Print the total record for the record in the hold area and zero out the totals again.
Choice 3
Print the record currently in the hold area and move the input record into the hold area.
Choice 4
Move the input file fields to a hold area to be compared with the next record.
Choice 5
Skip the input record.
My English is not good enough to know clearly about the mean of the question...I choose 2. |
|
Back to top |
|
|
Ramya A
Active User
Joined: 26 Jul 2004 Posts: 104
|
|
|
|
Hi
The answer for this question is 1. When the input control field and hold area control field are same, it means that you have encountered a record with the same key that you are handling currently. So print it for detail report and add to the total for total records.
Regards,
Ramya |
|
Back to top |
|
|
sungang77
New User
Joined: 03 Nov 2005 Posts: 46 Location: Shanghai, China
|
|
|
|
Ramya Arun wrote: |
Hi
The answer for this question is 1. When the input control field and hold area control field are same, it means that you have encountered a record with the same key that you are handling currently. So print it for detail report and add to the total for total records.
Regards,
Ramya |
Thanks a lot, Ramya. |
|
Back to top |
|
|
khamarutheen
Active Member
Joined: 23 Aug 2005 Posts: 677 Location: NJ
|
|
|
|
hi frnd,
As per Ramya the Solution will be Choice 1 i too agree. |
|
Back to top |
|
|
|