Programs in Physics & Physical Chemistry
|[Licence| Download | New Version Template] aczz_v1_0.gz(10 Kbytes)|
|Manuscript Title: EDITOR: a program for amending files of card images.|
|Authors: M.A. Crees|
|Program title: EDITOR|
|Catalogue identifier: ACZZ_v1_0|
Distribution format: gz
|Journal reference: Comput. Phys. Commun. 19(1980)139|
|Programming language: Fortran.|
|Computer: CDC 7600.|
|Operating system: SCOPE 2.1.4.|
|RAM: 5K words|
|Word size: 60|
|Keywords: General purpose, Utility, Editing, Machine-independent, Files.|
Nature of problem:
It is quite common for the same program to be stored and run on a variety of computers, so that making alterations to a program may involve implementing the same changes on a number of machines. This can be both tedious and time consuming as it is usual for different machines to have different file editing facilities, if any, forcing the user to produce a different set of updating instructions for each machine. EDITOR is a Fortran program written to overcome such problems by using machine independent instructions. Then, assuming that the original file is identical on all machines, the same instruction deck can be used for all machines.
EDITOR produces a corrected 'newfile' from an original 'oldfile' by reading, as data, instruction cards which identify cards to be deleted and positions for new cards to be inserted. New card images are read in as part of the instruction deck. EDITOR also has facilities for listing, punching and numbering parts or whole of a file.
EDITOR has been designed to work on files of 80 character card images in which each card image has a unique identification in columns 73 to 80. The nature of the identification being a four-character identifier in columns 73 to 76 and a four digit number in columns 77 to 80 (i.e. exactly how CPC Library programs are identified). EDITOR can produce a file with such an identification trivially from a file not so numbered. There is no facility for amending part of a card image; if a change is to be made then the whole card image must be replaced.
The running time is almost completely determined by the size of the file being edited and not by the number of changes being made. Typically EDITOR takes 0.5 s to edit 1000 card images on the CDC 7600 at ULCC.
|Disclaimer | ScienceDirect | CPC Journal | CPC | QUB|