i am currently learning COBOL and have been set the following task.
design a program that will read records from disk and produce report.
each record terminated by newline.
data already validated.
record contains..
ref number 6 alphanumeric
type code 1 numeric ( 1 to 6 )
weight 4 numeric
quantity 4 numeric
calculation method 1 numeric (1 or 2)
unit buying price 4 numeric 1 decimal place
unit sale price 4 numeric 1 decimal place
records sorted by type code ascending order
when reading records a change of type code results in CONBREAK to print totals for each type code then moves to next type code.
this is where im stuck how do i do the conbreak part?
please help.
design a program that will read records from disk and produce report.
each record terminated by newline.
data already validated.
record contains..
ref number 6 alphanumeric
type code 1 numeric ( 1 to 6 )
weight 4 numeric
quantity 4 numeric
calculation method 1 numeric (1 or 2)
unit buying price 4 numeric 1 decimal place
unit sale price 4 numeric 1 decimal place
records sorted by type code ascending order
when reading records a change of type code results in CONBREAK to print totals for each type code then moves to next type code.
this is where im stuck how do i do the conbreak part?
please help.