When would I use a Special Device in the file specifications?
A Special Device file is used when the file processing (or part of the processing) is to be handled by an outside program. You can specify the processes (READ, UPDATE, DELETE, OPEN, CLOSE, FEOD or any combination of these) that the outside program is going to perform. The Special processing program will be called any time that process is performed. Here is an example in the ILE/RPG book. It includes a sample program for declaring the file as well as a program to process the records.
Dig Deeper on iSeries CL programming
Related Q&A from John Brandt
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.