- Explain, as review, the use of periods and the structure of a COBOL program.
- Use the PERFORM UNTIL action to implement multiple iterations of an action.
- Compare the PERFORM WITH TEST BEFORE and TEST AFTER and other language equivalents.
- Describe an accumulator operation including when to use one and how to initialize it.
- Describe a counter operation including when to use one and how to initialize it.
- Explain the problems that could come up if counters or accumulators are in the wrong place in code or are uninitialized.
- Use the PIC clause to allow entry of negative numbers
- Format output to suppress leading zeros in numeric output
- Output values with the $ and thousands separator
- Open sequential files for input and define the record layout
- Iterate through records using the PERFORM UNTIL statement
- Examine the file state and handle end-of-file (EOF) conditions
Preparation and Resources:
- Be sure you thoroughly understand Lab 1 and are able to write code on your own with little or no other resources besides a starting template.
- LinkedIn Learning and verbs (section 3): https://www.linkedin.com/learning/cobol-essential-training/introduction-to-verbs
- LinkedIn Learning and files (section 4): https://www.linkedin.com/learning/cobol-essential-training/file-organization-and-access-methods
- Another video on reading sequential files: https://www.youtube.com/watch?v=3EmmoUK4JIE
- Video of problematic PIC clauses: https://www.youtube.com/watch?v=qhwOFuQl_pg