Sign in

docs RPG Reference

File device types

File device types

PRINTER : The file is a printer file, a file with control characters that can be sent to a printer.

DISK : The file is a disk file. This device supports sequential and random read/write functions. These files can be accessed on a remote system by Distributed Data Management (DDM).

WORKSTN : The file is a workstation file. Input and output is through a display or ICF file.

SPECIAL : The file is a a special file. Input or output is on a device that is accessed by a user-supplied program. The name of the program must be specified as the parameter for the PGMNAME keyword. A parameter list is created for use with this program, including an option code parameter and a status code parameter. The file must be a fixed unblocked format. See PLIST(Plist_name) and PGMNAME(program_name) for more information.

SEQ : The file is a sequentially organized file. The actual device is specified in a CL command or in the file description, which is accessed by the file name.