Results 1 to 7 of 7

Thread: Control Break in COBOL

  1. #1
    Contributing Member
    Join Date
    May 2006
    Answers
    82

    Control Break in COBOL

    What is control breaks used for in COBOL programming? Is this used for producing reports or is their any other usage of this control break. Someone provide a brief explanation on this to help me understand this term.


  2. #2
    Contributing Member
    Join Date
    Jul 2006
    Answers
    76

    Re: Control Break in COBOL

    Yes Control Break in COBOL is used for producing reports. For instance, when the value of control variable changes the sum can be calculated and produced in report. That is using control, break it is possible to produce summary of previous state and set a new state for processing the next set of report. All this would be useful in a company for producing reports in different formats as desired by them.


  3. #3
    Contributing Member
    Join Date
    May 2006
    Answers
    71

    Re: Control Break in COBOL

    Great discussion. This really heped me to learn about control break in COBOL. Thanks for such postings.


  4. #4
    Junior Member
    Join Date
    Sep 2006
    Answers
    2

    Re: Control Break in COBOL

    Hi Timmy,

    For an example of COBOL control breaks, please see.

    Program listings page of Alfred Simpson

    Regards,
    Alfred Simpson


  5. #5
    Junior Member
    Join Date
    Sep 2008
    Answers
    5

    Re: Control Break in COBOL

    control break is used in cobol only for Reports.
    and control break is same as the group by clause
    suppose My company have two dept and i want reports as per the department
    here control break is used see the following example
    eg.
    Dept Salesperson No Amt of Sales
    01 12345 $988.55
    01 12346 $3,537.00
    01 12347 $34.99
    Total for Dept is $4,560.54

    02 12222 $9,877.00
    02 12234 $87.77
    Total for Dept is $9,964.77


  6. #6
    Junior Member
    Join Date
    Sep 2006
    Answers
    2

    Re: Control Break in COBOL

    Yes, that is a straightforward request for a one level control break.
    And easily handled by COBOL control breaks.
    Was that a question or a statement?

    Alfred.


  7. #7
    Junior Member
    Join Date
    Oct 2008
    Answers
    1

    Re: Control Break in COBOL

    I had the same questions. Well anyways, thanks for the links to some additional info about the subject.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact