Try OpenEdge Now
skip to main content
Programming Interfaces
Input/Output Processes : Alternate I/O Sources : Changing the input source of a procedure : Input from devices, directories, and the terminal
 
Input from devices, directories, and the terminal
Some operating systems (like UNIX) let you receive input from devices other than terminals and disk files and let you use a name (like a filename) to reference them. You redirect input from these devices exactly like files. For more information, see Input from files .
You can read the contents of a directory using the OS–DIR option of the INPUT FROM statement. For more information on reading the contents of a directory, see Readingthe contents of a directory.
You can reset any input source to the terminal using the TERMINAL option of the INPUT FROM statement. For more information, see Receiving input from multiple sources .