CTRLFLOW - TOTAL-AMT-WS EXIT Accumulate the Sub Total...

Info iconThis preview shows pages 1–8. Sign up to view the full content.

View Full Document Right Arrow Icon
CNTRLBRK.CBL FLOWCHART Page 1 of 8 START 200-OPEN EOF-WS = ? 300-PROCESS 900-CLOSE STOP RUN 'NO' 'YES' 100-MAINLINE
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
CNTRLBRK.CBL FLOWCHART Page 2 of 8 ENTRY OPEN INPUT ACCOUNT-FILE OUTPUT ACCOUNT-REPORT 250-READ 500-HEADER EXIT ACCEPT REPORT-DATE-WS FROM DATE MOVE TO REPORT-HEAD MOVE-ACCT-IN TO SAVE-ACCT-NUM-WS Initialize the account number of the 1st Record 200-OPEN
Background image of page 2
CNTRLBRK.CBL FLOWCHART Page 3 of 8 ENTRY READ ACCOUNT-FILE INTO INPUT-REC AT END ? MOVE 'YES' TO EOF-WS EXIT YES 250-READ
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
CNTRLBRK.CBL FLOWCHART Page 4 of 8 ENTRY 350-PRINT 250-READ EXIT 600- TOTAL CONTROL BREAK ? ACCT-IN > SAVE-ACCT-NUM-WS ? GOOD DATA ? ACCT-IN = SAVE-ACCT-NUM-WS ? Bad Data Msg MOVE 'YES' TO EOF-WS NO YES YES NO 300-PROCESS
Background image of page 4
CNTRLBRK.CBL FLOWCHART Page 5 of 8 ENTRY MOVE ACCT-IN TO ACCT-OUT DATE-IN TO DATE-OUT VENDOR-IN TO VENDOR-OUT AMT-IN TO AMT-OUT MOVE DETAIL-LINE TO PRINT-OUT WRITE PRINT-OUT AFTER 1 ADD AMT-IN TO
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 6
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 8
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: TOTAL-AMT-WS EXIT Accumulate the Sub Total 350-PRINT CNTRLBRK.CBL FLOWCHART Page 6 of 8 ENTRY WRITE PRINT-OUT FROM REPORT-HEADER AFTER PAGE WRITE PRINT-OUT FROM COLUMN-HEADER AFTER 2 MOVE SPACES TO PRINT-OUT WRITE PRINT-OUT AFTER 1 EXIT 500-HEADER CNTRLBRK.CBL FLOWCHART Page 7 of 8 ENTRY MOVE TOTAL-AMT-WS TO TOT-AMT-OUT WRITE PRINT-OUT FROM TOTAL-LINE AFTER 2 ADD TOTAL-AMT-WS TO GRND-TOT-WS EOF ? MOVE ZEROS TO TOTAL-AMT-WS MOVE ACCT-IN TO SAVE-ACCT-NUM-WS 500-HEADER EXIT NOT 'YES' 'YES' 600-TOTAL CNTRLBRK.CBL FLOWCHART Page 8 of 8 ENTRY 600-TOTAL MOVE GRND-TOT-WS TO GRND-TOT-AMT-OUT WRITE PRINT-OUT FROM GRAND-TOTAL-LINE AFTER 4 CLOSE ACCOUNT-FILE ACCOUNT-REPORT EXIT 900-CLOSE...
View Full Document

This note was uploaded on 03/09/2011 for the course BCIS 3620 taught by Professor Staff during the Fall '10 term at North Texas.

Page1 / 8

CTRLFLOW - TOTAL-AMT-WS EXIT Accumulate the Sub Total...

This preview shows document pages 1 - 8. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online