Skip to main content

Problem:

View is a 32-bit, character mode, text file viewer. It can be created as a character mode or graphical executable. It uses call-by-name routine x'AF' to initialize Adis, and compiler directive FileType"14" to create a temporary, relative file.

Resolution:

INTRODUCTION

==========

View is a 32bit, character mode, text file viewer. It can be created as a character mode or graphical executable. It uses cal-by-name routine x'AF' to initialize Adis and compiler directive FileType"14" to create a temporary, relative file.

SOURCE FILES:

=========

Program Files:

-------------------     -----------------------------------------------------------

View.cbl                  A character mode, text file viewer.

xBorder.cbl             A sub program that paints the screen with characters and color attributes.

REQUIREMENTS:

==========

There are no special requirements. The program should function when compiled with pre SP1 NetExpress 3.1 and 3.0. The release build uses the Dynamic setting so the program will execute from any command prompt on a development system or a workstation where Application Server is installed.

OPERATION:

========

The View program can be executed from a command prompt or a shortcut. The command is: view filename <Enter>. The filename and extension are required and the file must be a text file.

NOTE:

====

Documentation on the routines and directives used in this example can be found in the Character User Interface and File Handling books in the Bookshelf.

==========================================================

Keywords: demonstration, sample, example, demo, textfileviewer.zip

demo.ex

demo.ne

demo.se

Attachments:

TextFileViewer.zip

Old KB# 4026