OS/2 seems to be a little like Mark Twain the author, who wrote to a
newspaper protesting "reports of my death are greatly exaggerated!" OS/2 shares his nationality, but judging
by the lack of coverage, one could be forgiven for thinking that everyone has forgotten about the existence
of OS/2. However, it is still the operating system of choice on many computers, working without too much
fuss, supporting many mission-critical operations - especially in our financial system. About 75% of
Australian ATMs operate under the control of OS/2, along with much of the front counter equipment in the
branches of our major and regional banks.
Since then the computer industry has focused much of its attention on a love affair with the Internet. IBM has concentrated on releasing FixPacks and device driver updates to keep abreast of developments. There are up-to-date OS/2 device drivers for USB, DVD, Zip drives, the latest high-capacity hard drives (both IDE and SCSI), the latest printers, cable modems, network cards, plotters, analogue modems and video cards. OS/2 has been a solid operating platform for all of its existence and is now a seasoned warrior in the world of mission-critical computing, with an assured future ahead, since IBM has publicly committed to active support until the end of 2007. The Power of OS/2: Objects Everywhere One of the reasons for the survival of OS/2 and the existence of a loyal (dare I say it: fanatical) user base both in corporate business and in the private sectors is the collective set of design principles on which it is built. OS/2 is the first retail PC Operating System to be fully object-oriented - everything you see from the Desktop down is an object. All objects have properties - programs, data files, directory folders, the Desktop, Drives and so on. These properties are consistent, and can be inherited by subsidiary objects. I will illustrate this object-oriented design in a number of areas. Work Areas The Desktop (see Figure 1) has a property of "Work Area" which means that when it is closed all objects within it are also closed. This is effectively what happens at Shutdown, since (in graphical mode) all objects are started from the Desktop by a process called "The Workplace Shell." This property of "Work Area" can also apply to any other folder (see Figure 2), so if I open a subsidiary folder and run a program, then I can minimise or close the folder and automatically minimise or close the contents with it. But not only that - when I reopen the folder, the contained objects are also restored.
The enclosed objects inherit the attributes or properties of the container
folder and behave consistently. All the objects open together - multi-tasking for productivity. If your work
is project focused, you can establish a folder for each project, include all relevant programs and files,
define it as a Work Area and get to work with one mouse click (see Figure 3).
The shadow dynamically retains its two-way connection even if the original is moved. So I can go to the original location of a folder and move it say from Drive H: to Drive G:. If I return to Desktop and click on the shadow:
I can create an object that refers to a program, (known in OS/2 as a Program Reference Object). On the Desktop I may have such an object that refers to say my Accounting Program, which happens to be a Windows application. Using the DOS & Windows support built into OS/2 I can assign certain features to the environment it will use, select the AUTOEXEC.BAT file that will run when the program starts and assign command line parameters to the object. I can also keep all of these distinct from those same attributes that apply directly to the (executable) program itself. The example object on the Desktop is labelled "Pastel 5H" but the executable program name is actually "Pastel5.exe." (see Figure 4). I can create another object referencing that same program to operate slightly differently, for example giving it the title "Accounts - Last Year" and setting command line options for the program to automatically start with last years accounts. I can also go to a folder, find another program and create a new object on the desktop. The Program Object will automatically be assigned a default set of properties according to its nature (OS/2, Windows or DOS). I can double click on that object to run the program and it will appear to behave exactly as if I was directly starting up the actual .EXE file or had typed its name at the command line - DOS-style. I can delete the object from the desktop when I am done, without risking the loss of the actual program. Fax Freedom - Even for DOS Programs! This object concept applies even to transient entities such as print jobs. Every printer device in OS/2 handles print jobs as objects. A Fax device with attributes to transmit output files as faxes may be built as a print object and will appear in the list of printers available to all native OS/2 programs. But even DOS and Windows programs that have never been built to recognise a Fax device or a modem may be Fax-enabled. When the native OS/2 fax application Faxworks is registered upon installation, logical device LPT3 (another object) is established as an alternative source of fax jobs. So I can go to my venerable and trusty DOS database program PC-File, prepare a report and print it to LPT3. As soon as the print job is closed, Faxworks collects it from LPT3 (which has been assigned the attribute of "Fax") and spools it for faxing (see Figure 5) exactly the same as if it had come from a native OS/2 program designed to recognise the Fax device.
Multiple Attributes, Multiple Purposes
Desktop Extensions
OS/2 is a clear demonstration that "object-oriented" is a not merely a buzzword. It has been brought out of the clouds, and applied to real-life situations: indeed OS/2 = Objects Everywhere. About the only objects you won't find on an OS/2 system are named "Melissa," ILuvU," "Concept.VBS" and so on. OS/2 offers power, productivity and stability which is not about to disappear. If you want to experience more of the power of OS/2, the SIG meets on the fourth Tuesday each month. If you think you might like to try it, we will happily install OS/2 from your APC July cover CD-ROM. About the Author John Angelico CPA, talldad@kepl.com.au is co-convener of the OS/2 SIG and has been operating OS/2 in the family business since 1993. Reprinted from the November 2000 issue of PC Update, the magazine of Melbourne PC User Group, Australia |