i have a whole lot of errors in my 300 and 500 process can some one help me out?
Identification Division.
Program-ID. Assign-01.
Author. "Jessica Bennett".
Date-Written. "10-6-02"
* Remarks This Program Lists data, 80-80..
Environment Division.
Configuration Section.
Special-Names. C01 Is Next-Page.
Input-Output section.
File-control.
Select Data-file Assign to "A:Chdata04.dat"
Select Print-File assign to "A:File2.txt".
Data Division.
file section.
FD data-file.
01 Print-record Pic x(56).
Fd Print-file.
01 Print-record Pic x(80).
Working-Storage Section.
01 Data-Area.
05 PIC x Value Spaces.
05 Item-Number-Out PICTURE x(9).
05 PICTURE x(2) Value Spaces.
05 Item-Description-out PICTURE x(15).
05 PICTURE x(11) Value Spaces.
05 Quantity-Sold-out PICTURE ZZ9.
05 PICTURE x(9) Value Spaces.
05 Unit-Price-out PICTURE ZZ9.99.
05 PICTURE x(5) Value Spaces.
05 Sales-Date-out.
10 MO-OUT PIC 99.
10 PIC X.
10 DAY-OUT PIC 99.
10 PIC X.
10 YEAR-Out PIC 99.
05 PICTURE x(6) Value Spaces.
05 Salesman PICTURE x(2).
01 Print-record-In-Ws.
05 Pic x(10) Value Spaces.
05 Data-Area Pic x(55).
05 Pic x(15) Value Spaces.
01 name-record.
05 Pic x(50) Value Spaces.
05 Pic x(30) Value "Jessica Bennett".
01 WS-Date.
05 RUN-year PIC 99.
05 RUN-month Pic 99.
05 RUN-Day Pic 99.
01 Header-Record.
05 Header-date Pic x(8) value "10/17/02".
05 Pic x(25) Value Spaces.
05 Pic x(19) Value "Kitchen Industries".
05 Pic x(26) Value Spaces.
05 Pic x(5) Value "Page".
05 Page-Number-out pic Z9.
01 Record-Count-record.
05 Pic x(26)
Value "Total number of Records Is".
05 Record-Count-Out Pic ZZ9.
01 Counters.
05 Record-Count Pic S999 Value Zero packed-decimal.
05 Page-Number Pic S99 Value Zero packed-decimal.
05 Line-Count Pic S99 Value Zero packed-decimal.
01 Flags.
05 More-data-Flag Pic x(3) Value "Yes".
88 No-More-Data Value "no".
01 Header-01.
05 pic x(13) value "Current Date".
05 pic x(5) Value Spaces.
05 pic x(12) Value "Page Number".
05 pic x(6) Value Spaces.
01 Header-02.
05 Pic x(12) Value "Item Number".
05 Pic x(16) Value "Item Description".
05 Pic x(7) Value Spaces.
05 Pic x(14) value "Quantity Sold".
05 Pic x(8) Value Spaces.
05 Pic x(11) Value "Unit Price".
05 Pic x(9) Value Spaces.
05 Pic x(11) Value "Sales Date".
05 Pic x(5) Value Spaces.
05 Pic x(9) Value "Salesman".
05 Pic x(6) Value Spaces.
01 Detail-Line.
05 PICTURE x(1) Value Spaces.
05 Item-Number PICTURE x(9).
05 PICTURE x(2) Value Spaces.
05 Item-Description PICTURE x(15).
05 PICTURE x(11) Value Spaces.
05 Quantity-Sold PICTURE ZZ9.
05 PICTURE x(9) Value Spaces.
05 Unit-Price PICTURE ZZ9.99.
05 PICTURE x(5) Value Spaces.
05 Sales-Date.
10 MO-OUT PIC 99.
10 PIC X.
10 DAY-OUT PIC 99.
10 PIC X.
10 YEAR-Out PIC 99.
05 PICTURE x(6) Value Spaces.
05 Salesman PICTURE x(2).
Procedure Division.
100-Main-Line-routine.
Perform 200-Intialization-routine.
Perform 300-Process-routine
Until no-More-Data.
Perform 400-final-routine.
Stop run.
200-Initalization-routine.
Open Input Data-File
Output Print-file.
Perform 500-Header-Routine.
Read Data-File at End move "no"
to More-Data-flag.
300-Process-routine.
Move Data-record to data-area.
Move WS-Date from date.
move RUN-month to MO-OUT.
Move RUN-day to DAY-OUT.
Move RUN-year to YEAR-OUT.
Write Print-REc from Heading-record.
Move Print-record-In-ws to Print-Record.
Write Print-record after advancing 1 lines.
add 1 to record-count.
add 1 to line-Count.
If Line-count >56
Perform 500-Header-Routine
else
Next Sentence.
Read data-File at end Move "No"
To more-data-Flag.
400-Final-Routine.
Move record-Count to record-count-out.
Move record-Count-Record to Print-record.
Write Print-record after advancing 3 lines.
Close data-File, Print-File.
500-header-Routine.
Add 1 to Page-Number.
Move page-number to Page-number-out.
Move Header-01 to Print-Record.
Write Print-record after advancing 1 line.
Move Header-02 to Print-Record.
Write Print-Record after advancing 1 line.
Move Detail-Line to Print-Record.
Write Print-record after advancing 1 line.
Move name-record to Print-Record.
Write Print-record After advancing next-Page.
Move header-record to Print-Record.
Write Print-record after Advancing 2 lines.
Move Spaces to Print-Record.
write Print-record after advancing 3 Lines.
Move 7 to Line-count.
Identification Division.
Program-ID. Assign-01.
Author. "Jessica Bennett".
Date-Written. "10-6-02"
* Remarks This Program Lists data, 80-80..
Environment Division.
Configuration Section.
Special-Names. C01 Is Next-Page.
Input-Output section.
File-control.
Select Data-file Assign to "A:Chdata04.dat"
Select Print-File assign to "A:File2.txt".
Data Division.
file section.
FD data-file.
01 Print-record Pic x(56).
Fd Print-file.
01 Print-record Pic x(80).
Working-Storage Section.
01 Data-Area.
05 PIC x Value Spaces.
05 Item-Number-Out PICTURE x(9).
05 PICTURE x(2) Value Spaces.
05 Item-Description-out PICTURE x(15).
05 PICTURE x(11) Value Spaces.
05 Quantity-Sold-out PICTURE ZZ9.
05 PICTURE x(9) Value Spaces.
05 Unit-Price-out PICTURE ZZ9.99.
05 PICTURE x(5) Value Spaces.
05 Sales-Date-out.
10 MO-OUT PIC 99.
10 PIC X.
10 DAY-OUT PIC 99.
10 PIC X.
10 YEAR-Out PIC 99.
05 PICTURE x(6) Value Spaces.
05 Salesman PICTURE x(2).
01 Print-record-In-Ws.
05 Pic x(10) Value Spaces.
05 Data-Area Pic x(55).
05 Pic x(15) Value Spaces.
01 name-record.
05 Pic x(50) Value Spaces.
05 Pic x(30) Value "Jessica Bennett".
01 WS-Date.
05 RUN-year PIC 99.
05 RUN-month Pic 99.
05 RUN-Day Pic 99.
01 Header-Record.
05 Header-date Pic x(8) value "10/17/02".
05 Pic x(25) Value Spaces.
05 Pic x(19) Value "Kitchen Industries".
05 Pic x(26) Value Spaces.
05 Pic x(5) Value "Page".
05 Page-Number-out pic Z9.
01 Record-Count-record.
05 Pic x(26)
Value "Total number of Records Is".
05 Record-Count-Out Pic ZZ9.
01 Counters.
05 Record-Count Pic S999 Value Zero packed-decimal.
05 Page-Number Pic S99 Value Zero packed-decimal.
05 Line-Count Pic S99 Value Zero packed-decimal.
01 Flags.
05 More-data-Flag Pic x(3) Value "Yes".
88 No-More-Data Value "no".
01 Header-01.
05 pic x(13) value "Current Date".
05 pic x(5) Value Spaces.
05 pic x(12) Value "Page Number".
05 pic x(6) Value Spaces.
01 Header-02.
05 Pic x(12) Value "Item Number".
05 Pic x(16) Value "Item Description".
05 Pic x(7) Value Spaces.
05 Pic x(14) value "Quantity Sold".
05 Pic x(8) Value Spaces.
05 Pic x(11) Value "Unit Price".
05 Pic x(9) Value Spaces.
05 Pic x(11) Value "Sales Date".
05 Pic x(5) Value Spaces.
05 Pic x(9) Value "Salesman".
05 Pic x(6) Value Spaces.
01 Detail-Line.
05 PICTURE x(1) Value Spaces.
05 Item-Number PICTURE x(9).
05 PICTURE x(2) Value Spaces.
05 Item-Description PICTURE x(15).
05 PICTURE x(11) Value Spaces.
05 Quantity-Sold PICTURE ZZ9.
05 PICTURE x(9) Value Spaces.
05 Unit-Price PICTURE ZZ9.99.
05 PICTURE x(5) Value Spaces.
05 Sales-Date.
10 MO-OUT PIC 99.
10 PIC X.
10 DAY-OUT PIC 99.
10 PIC X.
10 YEAR-Out PIC 99.
05 PICTURE x(6) Value Spaces.
05 Salesman PICTURE x(2).
Procedure Division.
100-Main-Line-routine.
Perform 200-Intialization-routine.
Perform 300-Process-routine
Until no-More-Data.
Perform 400-final-routine.
Stop run.
200-Initalization-routine.
Open Input Data-File
Output Print-file.
Perform 500-Header-Routine.
Read Data-File at End move "no"
to More-Data-flag.
300-Process-routine.
Move Data-record to data-area.
Move WS-Date from date.
move RUN-month to MO-OUT.
Move RUN-day to DAY-OUT.
Move RUN-year to YEAR-OUT.
Write Print-REc from Heading-record.
Move Print-record-In-ws to Print-Record.
Write Print-record after advancing 1 lines.
add 1 to record-count.
add 1 to line-Count.
If Line-count >56
Perform 500-Header-Routine
else
Next Sentence.
Read data-File at end Move "No"
To more-data-Flag.
400-Final-Routine.
Move record-Count to record-count-out.
Move record-Count-Record to Print-record.
Write Print-record after advancing 3 lines.
Close data-File, Print-File.
500-header-Routine.
Add 1 to Page-Number.
Move page-number to Page-number-out.
Move Header-01 to Print-Record.
Write Print-record after advancing 1 line.
Move Header-02 to Print-Record.
Write Print-Record after advancing 1 line.
Move Detail-Line to Print-Record.
Write Print-record after advancing 1 line.
Move name-record to Print-Record.
Write Print-record After advancing next-Page.
Move header-record to Print-Record.
Write Print-record after Advancing 2 lines.
Move Spaces to Print-Record.
write Print-record after advancing 3 Lines.
Move 7 to Line-count.