O'Reilly logo

Complete CL: The Definitive Control Language Programming Guide, Fourth Edition by Ron Hawkins, Doug Pence, Ted Holt, Kevin Forsythe, Ernie Malaga

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 9. Using Files

By definition, CL is a control language. Because control languages rarely need to process files, processing files is usually left to more advanced programming languages. However, CL can process files in a limited way, and it can read and write to display files. Therefore, you can present prompt screens from a CL procedure and have user interaction with complete function key support.

While CL procedures also can read database files, writing database files is not supported. Files can be processed in two different ways. First, they can be processed record by record, the same way RPG programs can. Second, they can be processed as a whole—like other objects.

Record-by-Record Processing of a File

CL procedures can process database ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required