Whether you are using the command as input or output depends on whether you use the fileref in a reading or writing operation. For example, if the fileref is used in an INFILE statement, then the SAS ...
Unix was developed as a command line interface in the early 1970s with a very rich command vocabulary. DOS followed more than a decade later for the IBM PC, and DOS commands migrated to Windows.