Dwm-00100-35 b00 Amos Users Guide Jan1983
Dwm-00100-35 b00 Amos Users Guide Jan1983
AMOS
USER'S GUIDE
DWM-oo 1 00-35
REV. BOO
'--_____B_lphB mll::::rc
SOFTWARE MANUAL
AMOS
USER'S GUIDE
DWM-OO 1 00-35
REV. BOO
FIRST EDITION
April 1979
REVISIONS INCORPORATED
REVISION
I DATE
This document may contain references to products covered under the following U.S. Patent
Number(s): 4,530,048
ALPHA MICROSYSTEMS
3501 Sunflower
P.O. Box 25059
Santa Ana, Ca 92799
AMOS USER'i GUIDE Page iii
PREFACE
Table of Contents
The first book in this series, the Introduction to AMOS, gave you the
theoretical background you need to understand why the computer acts the way
it does, and why you have to treat it the way you do. This manual gives you
the opportunity to put the theory into practice.
The topics you'll read about in this chapter are:
This book is a step by step guide to the Alpha Micro Operating System,
known as AMOS. It is necessarily general since there is such a wide
variety of possible ways to configuration your Alpha Micro computer
system. But whatever size computer you have, and whatever types of
equipment you have attached to your system in the way of terminals,
disks units, tape units, etc., the same basic principles apply.
First, we'll tell you how to start up the computer in the morning and
turn it off at night. Then, how to use your terminal, how to mount and
unmount disks, how to request information from the system, and how to
use the various commands that come with the system. Next we'll
describe how you can store, manipulate, and retrieve data in the form
of files.
In Part 2, you'll find out how to make things even easier for yourself
by using the wildcard features of certain commands, how to rearrange
the data in your files, and how to create duplicate or backup copies of
your data. We also describe how you can use different disk accounts to
your advantage, how to protect them from unauthorized eyes, and how to
construct special files of system commands.
You will also get a brief introduction to several programming languages
you can use to write your own programs, and finally, we'll point you in
the direction of additional documentation you can read to get more
in-depth information on many of the topics we've covered only briefly
in this manual.
Like all the other manuals in the Alpha Micro Documentation Library,
this manual contains a number of standardized symbols and abbreviations
that make the examples easier to read and understand.
But before you can start writing your own programs, entering your own
commands, and creating your own fiLes, you have to know how the equipment
operates. The next chapter teLLs you everything you need to know.
THE EQUIPMENT
In this chapter, you wiLL find out how to get started using your ALpha Micro
computer. Before you can begin using the computer for programs and text
processing, you have to know a bit about the equipment you are going to use.
Before you begin to use your computer system, make sure that the person
designated as your System Operator has instaLLed the system software so that
it operates in accordance with 'your system's specific hardware
configuration.
Ask the System Operator to assign to you an account or accounts on the
system. These accounts wiLL be yours to use when you Log into the system
and when you are creating files. Your System Operator will assign you as
many accounts as you need.
Now you're ready to turn on your system.
Below are explanations for turning on most of the equipment you will
need.
NOTE: Check with your System Operator or refer to the
instructions that came with each device for information on
how to turn the devices on and off. The procedure is
different for different brands of devices. In this manuaL,
we cannot detaiL alL of the procedures for aLL of the
equipment that we support, but each device should come with
compLete instructions for use.
The procedure for turning on your system wiLL depend on what types of
devices are on your particuLar system. Since Alpha Micro supports many
different types of storage devices (such as Winchester disks, FLoppy
disks or video cassettes), you will have to adjust your procedure
according to the needs of the specific devices you have.
When you come to the point of turning on your disk drive, use the
instructions for the type of system that you have. GeneraLly, you
should turn the devices on in the foLLowing order:
YOUR TERMINAL
There are several things you can do to extend the life of your
terminal. First, you can make your terminaL last Longer and be
more reliable if you don't turn it off and on frequentLy. The
surges of eLectricity that occur when it's turned on and off might
eventuaLLy cause certain components to wear out. ALso, you can
turn the screen contrast down so that the characters don't become
etched on the screen. It is a good idea, too, to clear the
screen of characters when you are going to be away from the
terminaL for any length of time. To do this, make sure that you
are at AMOS command LeveL, and press the "CLEAR" or "CLEAR ALL"
key, or press RETURN untiL the screen cLears.
If you do turn your terminaL off, it is best to do so after the
computer itseLf has been shut off, and to turn it on again before
turning on the computer. Turning a terminaL on or off whiLe the
computer is powered on can sometimes cause eLectrical "noise" on
the connecting cable that might interfere with your computer.
THE EQUIPMENT
In this chapter, you will find out how to get started using your Alpha Micro
computer. Before you can begin using the computer for programs and text
processing, you have to know a bit about the equipment you are going to use.
Before you begin to use your computer system, make sure that the person
designated as your System Operator has installed the system software so that
it operates in accordance with 'your system's specific hardware
configuration.
Ask the System Operator to assign to you an account or accounts on the
system. These accounts will be yours to use when you log into the system
and when you are creating files. Your System Operator will assign you as
many accounts as you need.
Now you're ready to turn on your system.
Below are explanations for turning on most of the equipment you will
need.
NOTE: Check with your System Operator or refer to the
instructions that came with each device for information on
how to turn the devices on and off. The procedure is
different for different brands of devices. In this manual,
we cannot detail all of the procedures for all of the
equipment that we support, but each device should come with
complete instructions for use.
The procedure for turning on your system will depend on what types of
devices are on your particular system. Since ALpha Micro supports many
different types of storage devices (such as Winchester disks, FLoppy
disks or video cassettes), you wiLL have to adjust your procedure
according to the needs of the specific devices you have.
When you come to the point of turning on your disk drive, use the
instructions for the type of system that you have. GeneraLly, you
shouLd turn the devices on in the foLLowing order:
YOUR TERMINAL
There are several things you can do to extend the Life of your
terminaL. First, you can make your terminaL Last Longer and be
more reLiabLe if you don't turn it off and on frequentLy. The
surges of eLectricity that occur when it's turned on and off might
eventuaLLy cause certain components to wear out. ALso, you can
turn the screen contrast down so that the characters don't become
etched on the screen. It is a good idea, too, to cLear the
screen of characters when you are going to be away from the
terminaL for any Length of time. To do this, make sure that you
are at AMOS command LeveL, and press the "CLEAR" or "CLEAR ALL"
key, or press RETURN until the screen clears.
If you do turn your terminaL off, it is best to do so after the
computer itseLf has been shut off, and to turn it on again before
turning on the computer. Turning a terminaL on or off whiLe the
computer is powered on can sometimes cause eLectricaL "noise" on
the connecting cable that might interfere with your computer.
THE EQUIPMENT
In this chapter, you will find out how to get started using your Alpha Micro
computer. Before you can begin using the computer for programs and text
processing, you have to know a bit about the equipment you are going to use.
Before you begin to use your computer system, make sure that the person
designated as your System Operator has installed the system sof·tware so that
it operates in accordance with ·your system's specific hardware
configuration.
Ask the System Operator to assign to you an account or accounts on the
system. These accounts will be yours to use when you log into the system
and when you are creating files. Your System Operator will assign you as
many accounts as you need.
Now you're ready to turn on your system.
Below are explanations for turning on most of the equipment you will
need.
NOTE: Check with your System Operator or refer to the
instructions that came with each device for information on
how to turn the devices on and off. The procedure is
different for different brands of devices. In this manual,
we cannot detail all of the procedures for all of the
equipment that we support, but each device should come with
complete instructions for use.
The procedure for turning on your system will depend on what types of
devices are on your particular system. Since Alpha Micro supports many
different types of storage devices (such as Winchester disks, Floppy
disks or video cassettes), you will have to adjust your procedure
according to the needs of the specific devices you have.
When you come to the point of turning on your disk drive, use the
instructions for the type of system that you have. Generally, you
should turn the devices on in the following order:
YOUR TERMINAL
There are several things you can do to extend the life of your
terminal. First, you can make your terminal last longer and be
more reliable if you don't turn it off and on frequently. The
surges of electricity that occur when it's turned on and off might
eventually cause certain components to wear out. Also, you can
turn the screen contrast down so that the characters don't become
etched on the screen. It is a good idea, too, to clear the
screen of characters when you are going to be away from the
terminal for any length of time. To do this, make sure that you
are at AMOS command level, and press the "CLEAR" or "CLEAR ALL"
key, or press RETURN until the screen clears.
If you do turn your terminal off, it is best to do so after the
computer itself has been shut off, and to turn it on again before
turning on the computer. Turning a terminal on or off while the
computer is powered on can sometimes cause electrical "noise" on
the connecting cable that might interfere with your computer.
THE PRINTER
If you are going to be using a printer, turn· it on. Like
terminals, you might have problems if you turn your printer on or
off while the computer is on. You may want to turn off your
printers if you also turn off your computer.
If it has a REMOTE/LOCAL switch, turn the switch to REMOTE. If it
has an ONLINE button or switch, turn that to ONLINE.
OTHER DEVICES
If you have any other devices on your system, such as magnetic
tape drives, video cassette recorders, modems, etc., turn them on
now. Check the instructions that came with the device to find out
the procedure for turning them on.
THE COMPUTER
Turn on the power to your computer. With most Alpha Micro
systems, you have to hold down. the RESET button while you turn on
the power. In all cases, the RESET button is on the computer's
front panel.
NOTE: The exception is the AM-1000 computer-- just turn the
on/off switch to "on." If you hold in the RESET button on the
AM-1000 whiLe you turn on power, you will enable the Diagnostic
(testing) Mode.
In many Alpha Micro systems, your Winchester or floppy disk drives
will be powered up automatically when you turn on the power to
your computer.
You may find that you do not want to turn your computer off very
often. Since the Video Cassette Recorder software and the Task
Manager are time controlled, you may find it valuable to schedule
tasks and file-backups to run ir the evening.
It generally does not harm the computer to leave it on for Long
periods of time. And, in fact, turning power on and off
frequentLy to electronic circuits creates more wear and tear than
if you leave them on continuously.
For example, in the case of the Hawk Drive (the disk used with
the AM-SaO Hard Disk Controller) you must push in the
START/STOP button. This button will then light up, telling
you the disk has started spinning.
When the light behind the READY button comes on, the disk is
spinning at full speed and is ready to use. This process
usually takes a minute or so.
Never turn the power on or off while there are floppy disks in the
drive.
We recommend that you do not turn off the computer during normal
day-to-day use. However, you should spin down your Winchester disk
drives by use of the MOUNT command with the proper option. If you have
a floppy disk unit, you should remove the diskettes when the system is
not in use. (You should remove and insert floppy diskettes only when
power is on.) These measures help to protect your stored data from
being damaged, in case of power surges or faiLures.
If you do want to turn off your system, follow the procedures below
(which also tell you how to spin down the disk drives).
NOTE: One of the reasons for turning off the power is if you are going
to move the computer equipment. You MUST turn off the power any time
you move the equipment, or you may damage your disk storage and/or your
Central Processing Unit. Users of the AM-1000 systems should
especially take note of this warning, since the AM-1000 is easy to
move.
Before you turn off your computer or disk drives, make sure that
everyone using the system is at AMOS command level, and make sure that
AMOS is not in the process of transferring data between the computer
and the disk.
The procedures for shutting off both Hard disk and Floppy-disk systems
follow. Use the instructions for whichever type of system you have.
1. Remove and store the floppy disks that are in the drives.
2. Turn off the power to your floppy-disk drives.
3. Turn off the power to your computer. In many cases, turning
off the power to the disk and the computer is done in one
step.
When these major components of your system have been powered down, you
can turn off your terminals and printer.
A terminal is the device you use for communicating with AMOS. It has a
keyboard, upon which you type commands and enter data to the computer.
The terminal also has some method of displaying to you what you type in
and what is printed out by the computer.
If the terminal displays its output on a video screen, we call it a
Cathode Ray Tube Terminal (CRT), or a Video Display Terminal (VDT).
When your system is turned on, you shouLd see a prompt symboL on the
Left side of your terminal screen. The prompt symboL is a period
C.), and indicates that AMOS is waiting for a command.
If you do not see this prompt symbol, type a ControL-C (hold down the
CONTROL key on the keyboard, and type a C).
You shouLd now see the AMOS prompt on the screen.
If you stiLL do not see the AMOS prompt, check to see that your
terminaL is on, and that the cabLes running between the computer and
the terminal are firmLy in pLace. If these are okay and you stiLL do
not see the prompt symboL, then consuLt the System Operator for
advice.
When the AMOS prompt is dispLayed, we say that you are at "AMOS
Monitor command LeveL"; that is, that you are communicating directLy
with AMOS.
At other times you may see other prompt symboLs that indicate that
you are communicating with a program that AMOS is executing.
For exampLe, when you use the text editing program, ALphaVUE, you see
the ALphaVUE prompt symboL: >. At that point you must enter commands
that the ALphaVUE program understands.
When you exit AlphaVUE, you are returned to AMOS command LeveL (you
see the AMOS prompt (.) again). The various prompt symboLs remind
you which program you are communicating with.
Remember: To enter AMOS commands, you must be at AMOS command Level.
If you are using a CRT or VDT terminal, you also see another symbol
(the cursor) next to the prompt symbol. The cursor may be a small
white rectangle, a triangle, a blinking line, etc., depending on the
type of terminal you have.
The cursor always marks your current screen position. Any characters
that you type appear at that position on the screen. As you type,
the cursor moves forward as the new characters appear on the screen.
Now you are ready to sit down at your terminal and begin working. The
first procedure you need to know is how to log onto and log off of the
computer.
Once you see the AMOS prompt, you are ready to log onto the system.
Type LOG, the device and account number you are going to use, and press
the RETURN key. For example:
~LOG DSK2:[200,SJ [RET)
The device this account is on is DSK2:, and The 200,5 ;s the
Project-Programmer Number (PPN) of the account. Your System Operator
should have already assigned you one or more of these account numbers
for your use. After you have typed the above command, you wiLL see:
Logged into DSK2:[200,SJ
Now you are ready to begin processing data on your computer system.
But before we get into using the computer, you should know how to Log
off. You shouLd Log off your computer whenever you are going to be
away from your terminal for an extended period of time. If you leave
your terminaL logged into an account whiLe you are gone, someone eLse
could gain access to your files.
The LOGOFF command Looks like this:
.LOGOFF (RET)
User 200,5 Logged off
You are now off the system. If you try to perform most commands or
access any programs when you are not logged in, you will see:
?Login please
To get back on the system, use the LOG command again.
Once you are logged in, try typing a few characters on the keyboard.
As you type, the system displays the characters on your terminal
display.
If you should see each character displayed twice on the screen as you
type, check your terminal for a switch labeLed FULL/HALF or FULL
DUPLEX/HALF DUPLEX; turn the switch to FULL or FULL DUPLEX.)
Now you are ready to begin entering commands and instructions on your
keyboard.
RETURN (or RET) RETURN is the carriage return key. Just as you
type a carriage return on a typewriter to begin a
new line on the page, a RETURN tells the system
that you are ending a line of input and that you
want to begin a new line.
If you make a mistake while typing a command line, you may always
correct any mistakes in that line if you have not yet typed a RETURN.
Use the RUB key to erase single characters, or type a ControL-U to
erase the entire current Line. (See the paragraphs above for an
explanation of the RUB key and Control-U.) You may also use a
ControL-C to teLL AMOS to ignore the current line.
If you press the RETURN key before correcting your mistake, and the
command you entered was not a valid AMOS command, AMOS tells you that
it did not recognize the command:
• PRIMT [RET]
?PRIMT?
(You meant to say PRINT.) After letting you know that it does not
understand PRIMT, AMOS displays its prompt symbol. You are now free
to try again.
Type MOUNT and the name of the device which contains the new disk.
(Remember to incLude the colon.) Then press the RETURN key on your
terminal keyboard. For example:
..:.MOUNT AMS1: [RET]
AMOS wiLL be using the wrong bitmap when it reads from and writes to
the disk.
This can cause your data to be overwritten or destroyed. When you
use the MOUNT command, AMOS reads the bitmap from the new disk, and
uses that when reading from and writing to the disk.
WARNING: Do not make any typing mistakes when entering
the MOUNT command. If you accidentLy attempt to mount a
disk that someone eLse is aLready using, you couLd cause
damage to the bitmap of_the disk, which wiLL probabLy cause
Loss of data. It does not harm a disk if it is aLready
mounted and you use the MOUNT command, unLess someone
eLse is using that disk.
On AMOS/L systems, you wiLL get a warning that other users are
accessing the disk, and asking you if you want to go ahead with the
MOUNT. On the AMOS systems, you wiLL not get this warning either
way, make sure the other users are aware of what you are doing before
you proceed.
If you shouLd incorrectLy enter the name of the device you want to
mount, you see a message something Like this:
.MOUNT ASM1: (RET)
?Cannot mount ASM1: -device does not exist
If you get this message, it means that you misspeLLed the device name
or that the device is not defined on your system. To find out what
devices are defined, use the DEVTBL command:
.DEVTBL (RET]
These are the devices that are currentLy defined for your system. If
you do not have a Winchester disk drive, the dispLay you see may be
substantiaLLy different from the first four Lines of the exampLe
above.
Now that you are fami Liar with the system hardware, we can show you some 'of
the wide variety of commands and programs you can use to retrieve
information and process data. In the next chapter weiLL show you a group of
commands that dispLay vaLuabLe system information.
Some of the commands that you can use on the system are designed so that if
you enter only the command itself (with no specifications), AMOS will
display information pertaining to that command. With others, AMOS will
display instructions for the command if you leave out vitaL information.
The rest will give you some kind of error message if you do not enter the
command properLy, or leave out vitaL information.
The AMOS System Commands Reference Manual, DWM-00100-49, and the AMOS/L
System Commands Reference Manual, DSS-10004-00, contain information about
all of the commands available.
This chapter describes some of the commands that wilL help you get
information about the system. You can experiment with these commands to
familiarize yourself with using your terminaL and entering commands. The
foLLowing topics are discussed in this chapter:
The purpose of the HELP command is to give information about the system
and the system commands to a user who is new to the system.
You do not have to be logged into the system to use HELP. To find out
what topics the HELP command knows about, type HELP followed by a
RETURN:
~HELP [RET]
The screen clears and the terminal displays information on that topic.
If you ask for information on a topic that HELP doesn't know about, it
wilL dispLay the subjects it does have information about.
Of course, there are more HELP fiLes than in the dispLay above, and you
may create your own HELP topics by using one of the system editors to'
create text fiLes with .HLP extensions in the HELP library fiLe on
DSKO:[7,1J. (See Chapter 4 for a discussion of fiLe extensions.)
The HELP command automaticaLly incLudes the .HLP files that you create
in its list of topics, and displays your HELP files on command.
3.2 FINDING OUT WHAT ACCOUNT YOU ARE LOGGED INTO (LOG)
The System Status commands give you a quick summary of tasks the
computer is currentLy performing. The dispLays List aLL the jobs on
your computer system and teLL you what programs they are running.
Jobs, you recaLL from Introduction to AMOS, are subdivisions of you
computer's memory and each is usuaLLy attached to a terminaL.
SYSTAT dispLays on your terminaL screen one Line for each job on the
system. Each Line gives the name of the job, the name of the terminal
that the job is using, the account that the job is Logged into, the
octaL base address in system memory where the system maintains
information about the job, the status of the job, the name of the Last
program run by the job, the number of bytes (decimaL) in the memory
partition being used by the job, and its base address in memory
(octaL> •
BeLow the job information Lines is a List of all storage devices
currently mounted on the system and the number of bLocks free on those
devices.
To see the SYSTAT display, enter:
.SYSTAT [RET)
The STAT command is much like the SYSTAT command, except that the
display is updated continuousLy untiL you use Control-C. This can be
very useful if you wish to watch the progress of a task, or to see what
other users or devices are doing. To see the STAT dispLay, enter:
..:..STAT [RET}
ConsuLt the Reference Sheets for SYSTAT and STAT in the AMOS System
Commands Reference Manual, DWM-00100-49, or the AMOS/L System
Commands Reference Manual, DSS-10004-00, for examples and further
expLanatlons.
3.4 FINDING OUT THE STATUS OF YOUR JOB (JOBS AND JOBALC)
To interpret the SYSTAT and STAT dispLays mentioned above you wilL need
to know your job name. ALso, if you wish to use the SEND command
(explained in Section 8.6, SEND), aLL users on the system wilL need to
know the names of their jobs.
Now that you know the basics of how to operate your terminal and keyboard,
and how to use a few commands to extract information from the system, we can
move on to the structure of more complex commands. The next chapter tells
you how to arrange various pieces of data when you enter commands and how
the arra~gement affects the commands' behavior.
Command Syntax
(How to fit the pieces of a command together.)
Command Switches
(Special options that change the way a command works.>
Command Defaults
(What AMOS assumes if you leave something out.)
4.1 FORMAT
Although some commands consist of the command name alone, many commands
need additional information to do what you want them to. How you
arrange this additional information is determined by the format
(syntax) of the individuaL command.
Each command requires different types of information depending on what
the command does. Some pieces of data are required, whiLe others are
optionaL. ALso, the amount of data you give on a command line and the
order you enter it in determines how the command performs.
Here is a command format that shows what order the options must be in •
• COMMAND {outfiLespec=}{infiLespec1{ ••• ,infiLespecN}}{/switch} [RET)
The command name (six characters or less) is required, but everything
eLse (as indicated by the {} symboLs) on this sampLe command Line is
optionaL. In this case, the "outfilespec=" is followed by the
"infiLespecs" and the "/switches." In this exampLe, the phrase
{ ••• ,infiLespecN} means that you can specify any number of infiLespecs,
each separated by commas.
An ~nfiLespec is an input fiLe specification-- a fiLe the command takes
and manipuLates in some way. An outfiLespec is an output fiLe
specification-- a file the command creates or a fiLe where it pLaces
its resuLts. We'LL expLain switches in just a moment.
Notice that the outfiLespec comes before the equaL sign, and the
infiLespecs come after it. If you're used to scientific equations,
this arrangement may seem strange to you. But computers usually treat
an equaL sign as an "is repLaced by" sign, rather than "is equaL to."
That's why you'LL often hear the phrase "repLacement statement" used
instead of "equation" when taLking about programming instructions or
system commands. ALL you have to remember is that the output of a
command or instruction comes before the equaL sign and the inputs or
factors the command uses to get that resuLt come afterward.
You've aLready been introduced in Chapter 1 to the abbreviations and
symboLs we use in our exampLes, but here's a quick review.
4.2 SWITCHES
Switches are indicators that turn on and off various command options.
They are always preceeded by a sLash. The command reference sheets in
the AMOS or AMOS/L System Commands Reference ManuaL teLL you how to
specify switches for each command.
You can specify switches in commands by their fulL name (such as /QUERY
or /KILL), or you can use their abbreviation (such as /Q or /K). Many
switches have counterparts that reverse their effect. For example, the
INOQUERY switch reverses the effect of the /QUERY switch, and can be
abbreviated /NOQ.
4.3 DEFAULTS
The DIR program assumes that you want to see a directory of all the
fiLes in the account you're currently logged into. This is the most
general usage of DIR.
If you want to see a directory listing of just the files in your
account that have a file name of MEMO, you can enter the specific
filename to limit the display •
• DIR MEMO [RET]
The DIR command still assumes you want to see the files in your own
account. But if you want to see a list of the MEMO files in another
account (we'll talk more about accounts and PPNs in Chapter 9), all you
have to do is add an account number. Like this:
~DIR MEMO[220,15J [RET]
DIR assumes the account is on the same logical device as your own
account. So if you want to see a list of the MEMO files in a certain
account on another device, add a device specification. For example:
~DIR HWK1:MEMO[200,15J [RET]
As you can see, the more information you give a command, the more
easily you can control the results. As we explain the use of each
command, we'll tell you the default values each command uses and what
other information each command assumes.
The next step is to create some files to use these commands on. The next
chapter introduces you to AlphaVUE, an extremely useful and powerful program
that enables you to create and modify files. You'll also learn about a
number of system commands that make it easy for you to handle these files
once you've created them.
Files are the basic units for organlzlng and storing related data. All the
data you work with on the computer is eventually stored on your disk in the
form of files, so before we do anything else, let's find out how to create
files and retrieve data from them.
This chapter covers the following topics:
To create a new fiLe, you must first seLect a fiLe name six or fewer
characters Long. Every fiLe name aLso has an extension of three or
fewer characters. The extension is usefuL for identifying the type of
data a fiLe contains and is separated from the fiLe name by a dot, Like
this:
DATA.LST
DupLicate extensions are acceptabLe within an account as Long as the
fiLe names preceding them are different. And you can have fiLes with
the same name and extension in different accounts, but not in the same
account.
ALthough you can theoreticaLLy use any fiLe extension you wish, there
are a number of fiLe extensions that have taken on speciaL meanings.
To see if the fiLe name is in use, you can request a dispLay of your
account directory with the DIR command. Entering DIR by itseLf
causes a singLe coLumn List of the fiLes in your account' to appear on
your screen. If this List is Longer than one screenfuL, you can use
ControL-S to stop the dispLay and ControL-Q to start it up again.
The display that appears on your screen now is much easier to read,
especialLy if your account contains a large number of files.
Let's say you are assigned to write a Letter to a customer, and the
fiLe you want to create is caLLed LETTER. TXT. Enter:
.VUE LETTER. TXT [RET]
AMOS Loads the ALphaVUE program into memory, and ALphaVUE searches
for the fiLe name you entered. If there were aLready a fiLe by that
name in your account, you'd see it displayed on your screen. (To get
back to AMOS command level from here, you could press the ESCAPE key,
then press the letter Q, and finalLy press RETURN. Section 5.1.4
goes into this procedure in more detail.) But since it's a file that
doesn't exist yet, AlphaVUE responds:
LETTER.TXT does not exist, do you wish it created?
You do, so enter a Y for yes and press RETURN. (AlphaVUE asks this
question just in case you make a typing mistake when asking for an
existing file.) Your screen cLears and fills with asterisks, and the
cursor moves to the upper left corner, ready for you to start typing
your note. If a different dispLay appears-- one where the cursor
appears next to a > sign-- press the Escape key (ESC) to see the
screenful of asterisks.
Now you can enter the sampLe Letter, just to get the feeL of creating
a document. Just type it in, and don't worry about mistakes. It
might seem a bit different, especiaLLy if you are used to a
typewriter. Later on, you'll learn more about ALphaVUE from the
AlphaVUE/TXTFMT Training Guide, DSS-10000-03, and the AlphaVUE
User's ManuaL, DWM-00100-15. These manuals will show you how useful
and easy AlphaVUE can be for entering, correcting, and editing
documents.
Sincerely,
George Morton
Now that you have typed your note into memory, you need to store it
on your disk and return to AMOS. Pressing the ESCAPE key brings you
to AlphaVUE command level. The AlphaVUE prompt is a right
angle-bracket (» and if you enter an F (for Finish) and a RETURN,
your file is stored on the disk. As AlphaVUE stores your file, it
prints one dot on your screen for each block of the file it
transfers.
Your cursor appears next to the AMOS prompt indicating that you have
left AlphaVUE and are once again talking to AMOS. The whole
operation looks like this:
>F •••
If you decide that you don't want to save what you just typed, you
can still return to AMOS by entering a Q (for Quit) at AlphaVUE
command level instead. Like so:
>Q (RET)
You can do a lot more things with AlphaVUE than we've described here,
and you can learn more about both AlphaVUE and TXTFMT by reading the
AlphaVUE User's Manual, DWM-00100-15,' the TXTFMT User's Manual,
DWM-00100-07, and the AlphaVUE/TXTFMT Training Guide, DSS-10000-03.
Once your fiLes are stored in your account on the disk, you can Look at
them and modify them whenever you wish by using the VUE command or the
TYPE command.
The VUE command is the same one you used to create the fiLe in the
first pLace. Here's how to Look at that note you wrote earLier:
.VUE LETTER. TXT [RET)
If you need to send the same letter you wrote at the beginning of this
chapter to a different customer, you can easily make another copy of it
and just change a few of the words. The COpy command lets you do this
with a mlnlmum of bother. Decide on another file name that does not
already exist in your account and enter the following command.
~COpy NOTE.TXT=LETTER.TXT/NOD [RET)
where NOTE. TXT is the name of the new file, and LETTER. TXT is the name
of your original letter. Now you have two copies of the same thing and
you can use AlphaVUE to change one or the other.
The INOD on the end stands for INODELETE. It means that if, by chance,
the file name you chose (NOTE. TXT) was already in use in your account,
the file you copy (LETTER. TXT) will not wipe out whatever was in that
file before. Rather, AMOS will inform you that the file NOTE. TXT
exists, and not do any copying. You can then choose an unused name for
your file.
There are several different backup devices available where you can
store files that you are not actively using. Storing your inactive
files on floppy disks, video cassettes, or streaming tape cartidges
keeps your disk from becoming cLuttered, and also prevents the fiLes
from being accidentaLLy modified or erased. We'll taLk about backing
up your files in Chapter 8, "Backing Up Your Files."
Each backup device has special commands that enable you to store and
retrieve data. FLoppy disks that are used with Winchester technology
disks use the commands WINFLP, FLPWIN, and FLPDIR to copy fiLes back
and forth from one device to the other, and to display a directory of
the fiLes stored on a particular floppy disk.
1/2" magnetic tape drives use TAPFIL, FILTAP, and TAPDIR commands for
the same procedures.
The video cassette recorder uses the commands VCRSAV, VCRRES, and
VCRDIR to perform the same functions. And the 1/4" streaming tape
drive uses the commands STRSAV, STRRES, and STRDIR.
You can Learn more about these devices and commands by reading the
appropriate AMOS or AMOS/L documents listed in Chapter 12: Video
Cassette Recorder Backup Software, 1/4" Streamer Backup Software,
and the System Operator's Guide.
There are times when you may wish to change the name of a file, and the
RENAME command was developed for this purpose. It's a good idea to
verify that the new file name you picked is not already being used;
RENAME sends you an error message if it is.
If you suspect the file name is in use and you don't wish to save the
contents of the file if it is, you can use the 10 switch which deletes
the file before renaming your current file to the new name. Here's how
it works:
.RENAME/D MISSIV.TXT=NOTE.TXT [RET]
where MISSIV.TXT is the new name given to the current file, and
NOTE. TXT is the current file name. When the command is finished, the
file NOTE. TXT no longer exists and you can use that file name again for
another file.
Now that you've finished your letter, you need a printed copy of it to
put in the mail. To use the PRINT command, enter the name of the
command and the name of the file:
.PRINT LETTER. TXT [RET)
When you want to deLete a fiLe from your account, you can use the ERASE
command to get rid of it. Suppose you want to get rid of the
LETTER. TXT fiLe. Just enter:
.ERASE LETTER. TXT (RET]
The fiLe is gone and does not appear on the directory Listing of your
account. If you want to create another LETTER. TXT fiLe, you can do so
by foLLowing the same steps you used to create the first one.
NOTE: Depending on how your system is set up, you
may see an error message if you try to ERASE,
RENAME, or access a fiLe. It's possibLe that the
fiLe has been protected during system
initiaLization from being accessed. If you need to
access such a fiLe, contact your System Operator
for heLp.
These first four chapters have given you a broad, basic knowLedge of how the
AMOS and AMOS/L computer systems work, and how you can use them to your
advantage. The next six chapters teLL you how to add Leverage to the
commands you've aLready used, and introduce you to some new commands that
make your job even easier.
So far, you've Learned the basic operation of severaL system commands, but
usefuL as these commands are, they can become tedious if you have to repeat
them for a Large number of fiLes. If you have to make dupLicate copies of
twenty ALphaBASIC programs, or rename aLL your .TXT fiLes, or erase the .BAK
fiLes in your account one by one, you couLd become extremeLy frustrated if
it weren't for wiLdcard symboLs.
A seLect group of the most often used commands recognize these speciaL
symboLs and aLLow you to process groups of fiLes without having to specify
each and every fiLe name. Many commands do not recognize these wiLdcard
symboLs, so if you're ever in doubt, check the appropriate command reference
sheet in the AMOS or AMOS/L System Commands Reference ManuaL.
This chapter contains the foLLowing information:
In some card games, you can use a joker (or some other card) as a wiLd
card which can be used in pLace of any other card in the deck.
Likewise, you can substitute wiLdcard symboLs for various parts of fiLe
and account specifications in certain AMOS commands and enabLe the
command to process severaL fiLes with a singLe fiLe specification.
The list beLow explains what each of the wildcard symbols means.
* Asterisk. This symbol stands for any group of characters in
file names, file extensions, and account numbers. For
example, *.BAS means every file that has the extension .BAS.
Also, PR*.BAS means all files that start with PR and have
.BAS extensions like PRIVAT.BAS, PROOF.BAS, PRT23.BAS, and
PR.BAS.
? Question mark. This symbol stands for a single character in
file names, file extensions, and account numbers. For
example, EX?PT.LST includes all files whose names begin with
EX and end with PT (with only one character in between), and
have .LST extensions, such as EXMPT.LST, EXRPT.LST, and
EX9PT.LST, but not EXERPT.LST or EXPT.LST. A series of
question marks at the end of a file name indicates that many
or fewer characters.
ALL: All Logical Devices. This symbol stands for any
file-structured, mounted device. For example, ALL:START.DO
means all START.DO files on all logical devices.
dev: All logical devices whose names begin with the code "dev"
where "devil is the device abbreviation. If you leave off the
unit number from a device specification, wildcard commands
search for the files you specify on all units of the
specified device type. For example, HWK:BAKUP.CMD stands for
any file named BAKUP.CMD on any logical device whose name
begins with "HWK" (such as HWKO:, HWK1:, HWK2:, etc.).
[] Brackets. This symbol stands for any account number (PPN).
For example, SORT.HLP[J means all SORT.HLP files in any
account. [] is the same as [*,*J.
The system commands that recognize these wildcard symbols as valid
arguments allow you to manipulate numerous files with a single command.
But before we give specific examples of how each of these wildcard
commands operates, there are a couple of general rules that you need to
keep in mind when using wildcard symbols in account numbers.
First, when you use an asterisk (*) in an account number, you can
either use it to represent the entire project or programmer number (as
in [*,5] and [45,*]), or you can use it as a partial project or
programmer number with one or more numbers following it (as in [*41,12]
and [22,*2J). The catch is that you cannot put numbers ahead of the
asterisk in a partiaL project or programmer number. (This wiLdcard
account number is iLLegaL: [25*,6].)
The way you specify fiLes in wildcard commands determines the way the
commands perform. The paragraphs beLow describe how the pLacement of
input fiLe specifications (infiLespecs) and output fiLe specifications
(outfiLespecs) aLters the results of these commands.
The more data you have to enter on your screen, the easier it is for
you to make a typing mistake. The less you have to type, the better.
So for your convenience, several abbreviated substitutes have been
invented for the device and account specifications that you use most
frequently. These ersatz specifications are only four characters long
and reduce the possibility of error a great deal.
The foLLowing tabLe Lists the ersatz specs and the devices and
accounts they correspond to:
ERSATZ DEVICE SPEC LIBRARY NAME
RES: System Memory
MEM: User Memory
OPR: DSKO: [1 ,2J System Operator's Account
SYS: DSKO: [1 ,4] System Program Library
DVR: DSKO: [1 ,6] Device Driver Library
CMD: DSKO:[2,2] Command FiLe Library
LIB: DSKO: [7,OJ MisceLLaneous FiLe Library
HLP: DSKO:[7,1] HeLp FiLe Library
BOX: DSKO: [7,2] MaiLbox Data FiLe Library
LSP: DSKO:[7,4] ALphaLISP Language Library
PAS: DSKO: [7,5] ALphaPASCAL Language Library
BAS: DSKO:[7,6] ALphaBASIC Language Library
MAC: DSKO: [7, 7J Macro Language Library
You can use these ersatz specifications anytime you want to refer to
one of the Library accounts Listed above. For example, to see a
directory listing of all the files in the HeLp File Library, you
couLd enter either:
.DIR DSKO:[7,1J [RET] -or- .DIR HLP: (RET]
Most ordinary commands permit you to put switches onLy at the end of a
command Line. WiLdcard commands give you added fLexibiLity by
permitting you to pLace switches anywhere in the command Line. Where
you place a particular switch within a command will then affect how the
switch operates.
WiLdcard commands recognize two types of switches: fiLe switches that
pertain to individuaL fiLe specifications in the command Line, and
operation switches that affect the entire command Line regardLess of
thei r pLacement.
You can place an operation switch anywhere in the command line and
its effect is always the same. For example, the IK switch in the
PRINT commands below is an operation switch:
.PRINT/K MEMO.LST,REPORT.LST,LETTER.LST [RET)
is the same as •••
~PRINT MEMO.LST/K,REPORT.LST,LETTER.LST [RET]
and is the same as •••
• PRINT MEMO.LST,REPORT.LST,LETTER.LST/K [RET)
The description of each command will tell you whether its switches
are File Switches or Operation Switches.
This ERASE command sets the default device right away to DSKO:, and
deletes all files named SAVE and RESTOR from the account on that device
with the same number as the account you're currently logged into. So
far, so good.
NOw, notice that there is an account number ahead of the next filespec.
Placing the account number in this position resets the default account
number, so that the files PRT04.LST and MGMT.LST are both deleted from
account [200,1] on DSKO:. The last filespec contains a different
device name, but since the account number default has been changed to
[200,1], ERASE deletes all the files with .RST extensions from that
account on DSK1:.
That example might seem complicated at first, but if you analyze it one
part at a time, you'LL see how much you can accompLish with a single
command.
Setting the Project-Programmer Number DefauLts:
Here's another defauLt feature you can use.
~ERASE [24,0]TAXI.BAS,JRNL.LST[,S],[211,3JGRT.PGM,SRT101.SLR[212,] [RET]
If you Look cLoseLy at the account numbers in this command, you'LL
notice that one is missing a project number and one is missing a
programmer number. If you Leave one or the other of these numbers out
of an account number, wiLdcard commands defauLt to the currentLy set
defauLt project or programmer number. In this exampLe, the project
number for JRNL.LST and the programmer number for SRT101.SLR defauLt to
the previousLy set project and programmer numbers. This command couLd
aLso have been written:
~ERASE TAXI.BAS[24,O],JRNL.LST[24,S],GRT.PGM[211,3],SRT101.SLR[212,3] [RET]
As your use of fiLes becomes more extensive and your need to manipuLate
a lot of files quickLy increases, you'll find that the ability to
condense commands into the shortest possibLe space (especiaLLy in
Command and Do fiLes which we'LL discuss in Chapter 10), whiLe having
them process the maximum number of files, is extremeLy important.
Setting FiLe Switch DefauLts:
If you put a wiLdcard fiLe switch right ,after the command name Like
this:
~ERASE/Q TEXT1.TXT,RPT23.TXT,SUMX.TXT,FILE.TXT,GAME.TXT [RET]
the switch appLies to everything on ,the command Line. (In this case,
the Query switch wiLL cause the ERASE command to pause after each fiLe
for your confirmation before actuaLLy erasing it.)
The preceeding examples have given you just a small taste of how
wildcard symbols operate. Now we can look at some of the wildcard
commands themselves to see how they operate and how they can save you
hours of work.
You've already seen a few of the things the DIR command can do for
you, but now let's explore some of this command's other capabilities.
Before we go any further, though, here is a list of the command's
syntax and defaults.
COMMAND SYNTAX:
.DIR {{listfiLespec}=}{fiLespec1{, ••• filespecN}}{/switch{/switch}} [RET)
COMMAND DEFAULTS:
ListfiLespec DIRECT.LST, and the device and account you're
currently Logged into.
fiLespec *.*, and the device and account you're
currently Logged into.
Iswitch IWIDE:1/NOBASE
The first thing you probabLy noticed about the syntax of this command
is that it contains an optionaL ListfiLespec. This corresponds to
the outfiLespec you read about earlier in this chapter. If you
specify a fiLename foLLowed by an equaL sign (or just an equaL sign
if you want to use the default DIRECT.LST), DIR creates for you a
fiLe containing the directory dispLay you requested. Here are some
examples:
~DIR/W = [RET)
If you're looking for a specific file, but you can't remember where
it is, you can use the DIR command to locate it for you. For
example, if the file you're searching for is called LOST.FIL, enter:
.DIR ALL:LOST.FIL[] [RET)
This DIR command searches through every account ([]) on every disk
device (ALL:) and displays the location of every LOST.FIL it finds.
The DIR command allows you to use a variety of switches. You can see
a complete list of these switches and their capabilities in the DIR
command reference sheet, but here are some highlights.
1. IDATA (an operation switch) This switch causes DIR to
list the complete file specification for each file it
selects. Instead of displaying just the file name, for
example: TARIFF.AMT, the IDATA switch tells DIR to display
DSK5:TARIFF.AMT[143,10J. If you create a list file of a
directory display using the IDATA switch, your AlphaBASIC
COMMAND SYNTAX:
.COPY {outfiLespec}={infiLespec1{, ••• infiLespecN}}{/switches} [RET)
COMMAND DEFAULTS:
outfiLespec *.*, and the device and account you're
currentLy Logged into. If the System Operator
uses COpy from account [1,2] on any disk, the
same defauLts appLy except the defauLt account
number is the wiLdcard symboL []. This means
that unLess the device and account are
expLicitLy stated, the fiLes' the System
Operator copies are pLaced on the device the
System Operator is Logged into, in the account
number corresponding to the one they came
from.
To make a duplicate copy of a file, you can use the COpy command.
Choose a filename that's not already being used in your account (use
the DIR command to see the file names), and enter the command like
this:
.COPY NEWFIL.DAT=OLDFIL.DAT [RET)
where OLDFIL.DAT is the existing fiLe and NEWFIL.DAT is the file you
want to create. Now you have two copies of the same fiLe under two
different names, and you can modify one or the other to suit your
needs.
Most of the time, you'll be copying files to and from the account
you're logged into. You can also copy files between accounts without
being logged into either one as long as they share the same project
number as the account you are logged into.
The System Operator has the added ability to copy files to and from
accounts that he or she is not logged into, regardless of project
number. The System Operator must be logged into account number [1,2]
on any device to do this, however. If someone needs a copy of all
the program fiLes in a certain account written in ALphaBASIC, the
System Operator couLd enter a command Like this:
~COPY DSK2:[44,10]=DSKO:*.BAS[12,3] [RET]
The System Operator's account shouLd have special protection so no
one can log into it without knowing the special password. If you
need something like this done, submit your request to the System
Operator.
Also, if the System Operator is logged into [1,2] and tries to copy
files into an account that hasn't been established on the disk, COpy
automatically creates the new account, and gives it the same password
a~ the original, if any.
Like the other wildcard commands, COpy allows you to use a number of
switches which enabLe you to alter the effect of the command. Check
the COpy command reference sheet for a complete list of switches.
1. IQUERY - (a file switch) This switch tells COpy to pause
before copying a fiLe and wait for you to enter a Y (Yes) or
an N (No). You don't need to press RETURN.
If you enter Y, COpy goes ahead and copies the fiLe, but if
you enter N, it doesn't. You can deactivate the IQUERY
switch with the INOQUERY switch. Here's an exampLe:
This command pauses before copying all the fiLes with .MIN,
.KEY, .FLT, and .SHP extensions, but copies the .INT files
without stopping.
2. INODELETE (a fiLe switch) The INODELETE switch teLLs
COpy not to delete a file if it has the same fiLe name and
extension as the outfilespec in the command line. This
COMMAND SYNTAX:
.ERASE {outfilespec=}filespec1{, ••• filespecN}{/switch} [RET]
COMMAND DEFAULTS:
outfilespec *.*, and the device and account you're logged
into.
filespec The account and device you're logged into.
The extension defaults to a nulL extension
(one that's zero characters long).
Iswitch INOQUERY
You can erase fiLes from your own account or from another account as
long as the project number is the same as your own, even if the
accounts are on different devices. For exampLe, if you are Logged
into account [200,2] on DSKS:, you can enter the folLowi~g command:
~ERASE *.BAK,DSK4:CRT?*[200,S],VCR?*[200,6J [RET]
In this command, ERASE deLetes aLL the fiLes having .BAK extensions
from the account you're logged into, [200,2]. DSK4: sets the defauLt
device for the rest of the command Line, and ERASE deLetes aLL fiLes
with four character names that start with CRT from account [200,5]
and all files with four character names that start with VCR from
account [200,6], both on DSK4:.
If you try to delete a file that doesn't share the project number of
your own account, you see an error message like this:
?cannot delete FILESPEC - protection violation
The System Operator, when logged into DSKO:[1,2], can use the ERASE
command to delete any file in any account.
The only switches available with the ERASE command are the /QUERY and
/NOQUERY switches. Both are file switches. The query switch forces
ERASE to pause before erasing the files you specify. ERASE waits for
you to enter either Y (Yes) or N (No) before erasing the fiLe and
proceeding on to the next. It's not necessary to press RETURN after
the Y or N. Suppose you're logged into account [20,3] •••
• ERASE *.BAK,/Q A*.BAS,DEBIT.*,CREDIT.*,SUM??*/NOQ [RET]
In the command above, ERASE deletes all the fi le.s with .BAK
extensions in the account you're logged into. The /Q switch sets the
default, to QUERY for the next group of files. ERASE pauses before
erasing all the .BAS file that begin with the letter A, all the
DEBIT, and all the CREDIT files. Finally, the /NOQ switch
counteracts the /Q switch for the last group of files, all those with
five character filenames that begin with the letters SUM.
The RENAME command operates much the same as the COpy command. The
difference is that RENAME gets rid of the file under the old name.
It's really a combination of the COpy command and the ERASE command,
but it saves you from having to perform those two separate steps to
change the name of a file or group of files.
COMMAND SYNTAX:
.RENAME outfilespec=infilespec1{, ••• infilespecN}{/switches} (RET)
COMMAND DEFAULTS:
outfilespec The default device and account is ALL:CJ, and
the default filename is *.*.
infilespec *.*, and the device and account you are
currently logged into.
NOTE: You must specify at least a partial
outfilespec and partial infilespec for this
command to work correctly.
Iswitches INODELETE/NOQUERY
It's possible for you to rename files in accounts that have the same
project number as the one you're logged into. The other account can
be on the same device as your account, or on a different device, as
in this example:
.RENAME MFG*.*=DSK1:[55,2]BOM?BAS,WRK??LST,COG.L? [RET)
Assuming your project number is also 55, this rename command changes
the names of all the files in account [55,2] on DSK1: whose four
character names start with BOM and have .BAS extensions; all the
files in that account whose five character names start with WRK and
have any extension, and all the files in that account named COG whose
two character extensions start with L.
These files all stay in the same account you found them in, and they
keep their original extensions, but now the first three characters of
all their names are MFG.
You can't move a file to a different account using the RENAME
command, so don't specify an account in the outfilespec. If you do,
an error message like this appears on your screen:
?cannot rename FILESPEC - protection violation
The System Operator can rename files in any account, regardless of
project number, when logged into DSKO:[1,2].
Nine times out of ten, you'll want to get a printed listing of your
file. Often it will be the final copy of a letter or memo, a listing
of your AlphaBASIC or AlphaPASCAL program, or perhaps a copy of the
report that your program generates.
Since a printer can only print one file at a time, a special program
known as the Spooler maintains a list of the surplus files until the
printer finishes printing the file it's currently working on. The
list of pending files waiting to be printed is called the "print
queue." And as soon as one file is finished printing, the spooler
checks to see if there is another file waiting in the queue to print.
If there is, it automatically sends this next file to the printer.
COMMAND SYNTAX:
.PRINT {printerspec=}{infilespec1{, ••• infilespecN}{/switches}} ~ET)
COMMAND DEFAULTS:
, pri nterspec The default printerspec is the printer having
the fewest blocks of data currently in its
print queue or, more likely, the printer set
as the default by the System Operator.
infilespec The default infiLespec is the account and
device you're currentLy logged into, and
extension of .LST, and a null fiLename.
switches The defauLt switches are set up by the System
Operator when the Printer SpooLer is installed
on your system. Check with your System
Operator for the current switch defauLts.
If the print queue is empty, a message on your screen will tell you
so.
When you have a series of files to print, you can use a single PRINT
command to do so. If the files in that series share common elements
in their names, you can make the command even simpler by using
wildcard symbols. For example, if you have written a series of
chapters for a certain document, and their filenames all begin with
CHAP, to print them you might enter:
.PRINT CHAP* ~ET)
This command causes all the files in the account you're currently
logged into, whose filenames begin with CHAP and have .LST
extensions, to be placed in the print queue.
If you have more than one printer attached to your system, you can
specify which one you want the file printed on by entering a
printerspec:
.PRINTER DIABLO=*.BAS,*.TXT [RET)
The command above places all the files with .BAS and .TXT extensions
into the print queue for the Diablo printer.
Check with the System Operator to find out the names of the printers
on your system.
The PRINT command has a large number of switches that you can use to
control the files you send to the printer. They are all described in
detail on the PRINT reference sheet in the AMOS or AMOS/L System
Commands Reference Manual. The most important -ones are described
below.
Operator must specify the default form name when the printer
spooler is first set up.
4. IWAIT (an operation switch) If you want to print more
files than the spooler can keep track of, the extra file
requests are discarded. You can use the IWAIT switch to
tell PRINT not to discard these file requests if there's no
room for them in the print queue. The catch is that PRINT
ties up your terminal until it's able to print enough of the
earlier files to make room in the queue for the extras.
In this chapter, you've read about several useful commands that use wildcard
symbols. But there are many more commands in Alpha Micro's repetoire, and
in the next chapter we'll discuss two of them that can lighten your workload
a great deal.
This chapter introduces you to two commands that you can use to combine
several files together and organize according to conditions you specify.
These two commands do not recognize wildcard symbols.
Many times, a large file can be organized into several smaller sub-files
which are easier to keep track of and to work with. Then, when you're ready
to process all the files together, you can combine them into one. If the
records in these files need to be arranged in a certain sequence, you can
sort them into the proper order. Here are the two topics we'll talk about
in this ~hapter:
This command allows you to combine two or more files into one. You can
use APPEND to create an entirely new file that contains the same data
as its components, or you can add additional data to an existing file.
COMMAND SYNTAX:
.APPEND outfilespec=infilespec1{, ••• infilespecN} [RET)
COMMAND DEFAULTS:
outfilespec At least a partial filespec is required. The
extension defaults to a null extension (that is, an
extension zero characters long), the account and
device default to the account and device you're
currently logged into.
infilespec At least one partial filespec is required. The
account and device default to the account and
device you're currently logged into. The extension
defaults to the extension of the outfilespec, and
each subsequent infilespec defaults to the
extension of the infilespec preceeding it.
You don't necessarily have to create a new file each time you append
files together. You can simply append additional files to an
existing one. Here's how:
~APPEND PRGM.BAS=PRGM.BAS,RTN1.BAS,RTN2.BAS,RTN3.BAS [RET]
Note that we used the same file, PRGM.BAS, as both the outfilespec
and the first infilespec. All the subsequent files are thus added on
at the end of the existing PGRM.BAS file. (We could' have placed
PRGM.BAS anywhere in the string of infilespecs depending on what
order we wanted the files arranged in.) PRGM.BAS now contains its
former self plus the contents of the other three files. Those other
three files remain as they were.
COMMAND SYNTAX:
.SORT filespec [RET)
COMMAND DEFAULTS:
filespec SORT assumes the device and account you're
currently Logged into. The file extension defaults
to .DAT (indicating a data file).
1 1 2 2 3 3 4 4 5 5 6 6 7
•... 5 •... 0 .••• 5 .... 0 ..•. 5 .••• 0 .•.. 5 •••• 0 .... 5 .•.. 0 .•.• 5 •... 0 •..• 5 •••• 0
Each of the ten records in this file contains the same pieces of
data: a customer ID number, the name of the customer, the customer's
address, and the date of the customer's last purchase.
Take a minute or two to use AlphaVUE to create a file called CUST.DAT
containing the ten records shown above. When you're ready to sort
them, enter:
.SORT CUST.DAT [RET)
Now SORT asks you several questions to determine how you want the
file sorted.
1. Record size: Although the records in our file are all the
same length (70 characters), that might not always be the
case. Some files may contain records of differing lengths,
so you must enter the maximum record size in your file. If
you underestimate, any records larger than the size you
specify will be truncated to that length in the sorted file.
The records in our file are 70 characters long, so enter
that number.
2. Key size: A key is a piece of data within each record
that you want the file sorted by. Let's put the file in
alphabetical order by customer name. We've allowed for
twenty characters in the name field of our file, so enter 20
here.
3. Key position: Now you have to tell SORT where that field
begins in the records to be sorted. Looking back at the
listing of the individual records, you can see that the
customer name starts in position 7 of the record. Enter
that number.
4. Key order: Do you want the records sorted in ascending or
descending order? Answer A for ascending or D for
descending.
5. Key size: If you want to specify an additional sort key,
you can enter the size of a second key field here. SORT
then requests the Key position and Key order fpr the second
key. You can specify up to three key fields each time you
sort a file. Or just enter a RETURN, and SORT begins
rearranging your file right away.
It takes SORT only a short time to reorganize your file, and when
it's done, SORT displays a group of statistics similar to the ones
shown below:
Records sorted: 10
Runs generated from sort phase: 0
Passes over data in merge phase: 0
Record comparisons made: 20
Sector reads: 0
Sector writes: 0
You can sort files that are larger than available memory (as little
as 6K is enough in some cases), but as a general ruLe the more memory
you have availabLe, the more efficientLy (faster) SORT works.
If your fiLe won't fit into memory, SORT performs the sort on disk.
This takes longer, but it still gets the job done.
When you specify the dimensions of the key fields, make sure they
faLL completely within the record to be sorted. For exampLe, in our
LittLe customer fiLe, you couLd not specify a key size of 6 and a key
position of 69 since the record is onLy 70 characters Long.
You can specify as many as three key fieLds for SORT to use. The
first fieLd is the major sort key and determines how the entire fiLe
is sorted. Those records that have dupLicate information in the
major sort key fieLd are arranged in order by the second key fieLd
you specify. And finaLLy, records that have duplicate information in
both the major and intermediate sort keys are arranged in order by
the third, or minor, sort key fieLd.
If you use a date as a sort key, keep the format of the date fieLd in
mind. In our customer fiLe the date fieLd is in the MM/DD/YY format,
wher~ MM represents the month, DD represents the day, and YY
represents the year. When we sort by this fieLd, the year is more
important than the month and day. We therefore have two choices: we
could either convert aLL the dates on our fiLe to YY/MM/DD format, or
we could spLit the date fieLd into two separate keys.
If we decided to specify two separate keys, two digits for the year
and five digits for the month and day, the proc~ss wouLd Look
something Like this:
The two commands we've discussed in this chapter are extremely usefuL but
they can also cause some confusion if you use them incorrectly. Before you
start manipulating your files drastically, it's a good idea to make a backup
copy that you can always go back to, in case something unforeseen happens.
The next chapter explains several different ways to back up your data.
Backing up your programs and data by regularly copying them onto a spare
disk, magnetic tape, or video cassette is perhaps the most important habit
you can ~evelop.
Computers are generally very reliable machines, but nobody can completely
guard against such an accident as someone tripping over the power cord or
spilling a cup of coffee into the disk drive. There are also natural
disasters such as power outages, floods, fires, etc. that cannot be
prevented, but must be planned against.
Your programs and data are irreplaceable, so keeping a current copy of them
in a safe place will save you the frustration of losing several days worth
of programming or data entry.
In this chapter, we will discuss the following topics:
Backup Procedures
Backing up a single account (COpy)
Backing up an entire disk (DSKCPY)
Backing up onto a VCR cassette
The command that you wiLL use to transfer copies to your backup media
wiLL vary depending on what the media is. COpy is one of the commands
you use to copy between disks.
You can use the COpy command to make backup copies of all the fiLes in
your account, all of your accounts, and even of aLL accounts on the
disk. The COpy command is a wildcard command, so you may want to
review Chapter 6, "Using WiLdcard SymboLs," before proceeding.
Use the SET command to tell AMOS to notify you of any soft disk errors
encountered during the backup procedure:
-=.SET DSKERR (RET)
NOW, decide what fiLes you want to back up. For exampLe, let's say
that you are Logged into DSKO:[300,4J, and want to copy aLL files in
that account to the same account on DSK1: •
• COPY DSK1:= [RET)
CRMINV.BAS to DSK1:CRMINV.BAS
RESET.BAS to DSK1:RESET.BAS
CRITEM.BAS to DSK1:CRITEM.BAS
PRINT.TXT to DSK1:PRINT.TXT
Total of 4 files transferred
The fact that nothing appears on the right side of the equal sign in
the command line above teLls COpy that we want to copy ALL the fiLes
from the device and account we are logged into.
The DSK1: on the Left hand side of the equaL sign tells COpy to
transfer copies of those files under their own names to the same
account on DSK1:.
The System Operator (if logged into [1,2]) can use COpy to back up
all of the accounts on a disk regardless of their project numbers.
For example:
.COPY HWK1:[]=DSK1:[] [RET)
copies alL of the fiLes in all of the accounts on DSK1: over to their
corresponding accounts on the device HWK1:.
NOTE: The System Operator may omit the wildcard PPN symbol in the
outfiLespec-- when it is used from account [1,2], COpy assumes a
default outfiLespec of *.*, the device you are Logged into, and an
account specification of [].)
Rather than copying over individual files from one device to another,
DSKCPY makes a literal image copy of an entire disk. We will assume
for the purposes of this discussion that you want to back up the System
Disk.
You can only copy between devices of the same type; that is, where
the first three characters of the device name are the same, (e.g.,
AMS1: to AMS2:, DSK2: to DSK3:, DDS1: to DDS2:, etc.).
If you are using a floppy-disk based system, place the backup disk in a
drive other than the System Drive. If you are using a hard-disk based
system, see the note at the end of this section for cautions.
The backup disk must have been formatted at some time in the past.
(Check with the System Operator for information on what formatting
program to run to format a brand new disk.) Note that DSKCPY
completely obliterates any data previousLy on the backup disk.
To MOUNT the backup disk, enter:
• MOUNT DS K1: (RET]
The'n enter the DSKCPY command. The DSKCPY program fi rst asks you for
the INPUT DRIVE. Enter the specification of the device you are going
to back up. Then the DSKCPY program asks you for the OUTPUT DRIVE.
Enter the specification of the disk you are going to copy onto (the
backup device).
For example, if you want to copy DSKO: onto DSK1:, use the DSKCPY
command in this way:
• DSKCPY (RET)
Input drive: DSKO: [RET]
Output drive: DSK1: (RET)
DSKCPY begins to make a literaL image of DSKO: onto DSK1:, and dispLays
how many blocks it is copying. After it has finished the backup,
DSKCPY teLls you that it has finished copying the disk; then it
proceeds to verify the duplication by checking the data on the backup
disk against the data on the source disk.
We also support two kinds of magnetic tape backup systems. These are
the 1/2 inch magnetic tape drives and the 1/4 inch streaming tape
drives.
Information on the 1/2 inch magnetic tape drive can be found in the
AMOS System Operator's Guide, 05S-10001-00, and in the AMOS/L System
Operator's Guide, OSS-10002-00.
Information on the 1/4 inch streaming tape drive can be found in AMOS
1/4" Streamer Backup Software, OSS-10033-00, and in AMOS/L ~
Streamer Backup Software, OSS-10031-00.
Finally, there are our programs for backing up onto Floppy Disks from
Winchester disks. See the AMOS System Operator's Guide,
~~~~~~~~~--~~--~~
OSS-10001-00, for the AMOS system; and the AMOS/L System Operator's
Guide, OSS-10002-00, for the AMOS/L system.
Every user of the system has one or more accounts in which to create, store,
and edit files. When you create files on a disk, the system marks those
files as beLonging to the account you are Logged into.
Each account has a directory that Lists aLL of the files in that account.
It may seem easier to have just one account, but it can get very hard to
find your fiLes if you have a Lot of them. The best way to organize your
accounts is by subject. If you set up each account so that it contains the
same type of fiLes (for instance, one account for storage, one for memos,
one for Letters, one for inventory documents, one for purchase order
records, etc.), it wiLL be easier to find the fiLes you are Looking for.
To provide security for your programs and fiLes, you can password protect
your accounts. In this chapter, we wiLL discuss accounts and passwords and
their use. The subjects covered wiLL be:
Project-Programmer numbers
Passwords
Logging into another account
Start command fiLes
Sending messages to other system users
9.2 PASSWORDS
The System Operator may assign you an account password. The password
is for your protection; if you maintain its secrecy, other users cannot
log into your account.
You do not have to enter a password if you are transferring to an
account that is in the same project. That is, if you are in account
[100,2], and you want to log into account [100,1], you would not have
to enter the password if account [100,1] was password protected. You
would have to know the password if you were transferring from an
account such as [105,5].
If an account is password protected, you will be asked to enter the
password when you log in:
.LOG 100,3 [RET]
Password: [RET]
The system does not display your password on the terminal screen as you
type it. This prevents anyone from seeing what you entered. Remember
that the purpose of the password is to keep unauthorized users from
ga1n1ng access to the computer through your account. Keep your
password a secret!
Once you type your account number and password correctly, AMOS will
tell you that you are logged into the system:
.LOG 100,1 [RET]
Password: [RET]
Logged into DSKO:[100,1]
If you make a mistake in typing your account number or password, you
will see one of the following error messages:
?Account number invalid
?Bad password
?Command format error
and you will have to re-enter the LOG command with the correct
information.
Once you are logged into an account on the system, you can transfer to
another account by using the LOG command with the account number of the
account you want to tranfer to:
You can take short cuts if you are transferring to an account with
either the same project number or the same programmer number. For
example, if you are in account [100,1J and wish to transfer to account
[114,1J, you can type:
--=.LOG 114, [RET)
and AMOS will log you into [114,1J since you were already using
programmer number 1. Likewise, if you are in [100,1J and you want to
transfer to [100,4J, type:
--=.LOG ,4 [RET]
You should enter the DSK2: here to make sure that you get to the right
place. If you did not, and DSK3: also contained an account [100,5J,
that is where you would end up.
If you're absolutely sure that there is only one account [100,5J on the'
system, you don't have to enter the DSK2: -- AMOS will search the other
LogicaL units of the same physicaL device beginning with unit #0.
However, if that account is on a different physical device, such as
HWK1:, you ~ include the device specification in your LOG command.
Whenever you Log into an account, AMOS looks for a file in that account
named START.CMD. If such a file exists, the system assumes that it is
a command fiLe, and begins executing it as such.
You can use this speciaL command fiLe to perform certain procedures
automaticalLy every time you log into an account, such as erasing aLL
backup fiLes, creating a directory listing for that account, etc. It
is aLso useful for pLacing a message on the screen that gives the
purpose of the account, and perhaps what files are contained in it.
Command files of any other name will not execute automatically when you
log into the account, only the file named START.CMD. We discuss
command files in detail in the next chapter.
The SEND command allows you to send messages to other jobs while you
are logged into the system.
You simply type SEND, a space, the jobname of the person you wish to
send the message to, and the message you would like to send.
The message can be one line long. The length of the line on your
screen is defined in the system initialization command file. This is
usually a little longer than the width of the screen. You can, of
course, send more than one message, if it will not fit on one line. A
typical SEND command might look like this:
.SEND BILL WILL YOU BRING OVER THE SALES REPORT FOR LAST WEEK? (RET)
This message will print out on the terminal of the user whose jobname
is BILL. It is usually effective, and an easy way to communicate short
messages to other people on your system.
The person whose jobname is BILL will see:
JOB -- WILL YOU BRING OVER THE SALES REPORT FOR LAST WEEK?
where JOB is the jobname of the person who sent the message-- in this
case, you.
This is not a foolproof method, because sometimes the other user will
be doing something that prevents the message from appearing, such as
running a program. In this case, you will be given the message:
?Busy
or
?Guarded
indicating that your message did not get through. You can try again
later, or use another method of contacting that person.
One of the important features of the ALpha Micro system is that rather
than having a set of "buiLt in" commands that AMOS recognizes, aLL of
our commands are actuaLLy fiLes stored on the disk.
and AMOS reads the fiLe CLEAN.CMD and performs the process for you.
With this smaLL example, you do not save much typing, but imagine the
typing and time you would save if the sequence of commands you
reguLarly enter is ten or twenty Lines (or more) Long!
To create a command file, use one of the text editor programs to make
a text fiLe (usuaLly with a .CMO extension). FiLL the file with the
commands you would ordinariLy enter from the keyboard, pLus any
special symboLs.
A command fiLe can contain most commands or data that you might enter
from the keyboard; the fiLe can even contain the name of another
command fiLe.
AMOS continues to read Lines of text from the command file untiL the
fiLe ends. You may run, enter, and exit programs; suppLy data to
programs; or perform system functions - aLL under the control of a
singLe command fiLe.
As an exampLe, let us say that you have an ALphaBASIC program that you
want to edit, compiLe and then test.. Suppose that you also want to
deLete the backup fiLe created by the editor. You might want to
create a smaLL command fiLe to perform these functions:
WARNING: Do not use the commands MEMORY, JOBSIZ, or JOBMEM inside a
command fiLe. These commands change the memory aLlocation of your
job; that is, they change the section of computer memory that you
have been assigned. Since your command file and any other files it is
using are in memory, changing that memory may cause serious problems.
:T
VUE AVRAGE.BAS
COMPIL AVRAGE ,· Compil the basic programs
RUN AVRAGE ,· Run the compiled program
3
12 ,· Enter data needed for the program
7
ERASE *.BAK ,· Erase backup files
The first line of the command file (:T) means that you see the lines
of text in the command file as AMOS processes them.
The next line puts you into the text editing program, AlphaVUE, and
tells AlphaVUE that you want to edit the AlphaBASIC source program
named AVRAGE.BAS.
After you make some changes to the program, you leave AlphaVUE by
using the AlphaVUE exit command (F). Now AMOS returns to your command
file and reads its next instruction.
You are again at AMOS command level, and the next line of the command
file tells AMOS to bring in the AlphaBASIC compiler and compile the
ALphaBASIC program.
The compiler produces a new fiLe named AVRAGE.RUN (the compiled
version of your original source program). Line four of the command
fiLe tells AMOS to run the compiled program (AVRAGE.RUN).
The next three lines provide test data for the program, which asks for
three numbers. When the ALphaBASIC program finishes, you are returned
to AMOS command leveL.
The final command in the command file then teLls AMOS to erase all
backup fiLes in your account.
You may incLude comments within your file by preceding them with a
semicolon (;). AMOS does not process the comments. If a :T symbol
is used, any comments that foLLow it wiLL be printed out on your
terminal as the command file executes. If no :T is present, these
comments wiLL not be seen, but wiLL remain in the file to guide
anyone who looks at the file.
:T TRACE - Causes the Lines of the command fiLe and aLL of the
output to be dispLayed on your terminaL screen as AMOS
processes them.
Sometimes it's usefuL NOT to be abLe to see the commands and
data in a command fiLe as the fiLe is processed; in that
case, use the :R or :5 symboLs beLow.
Because you can pass text items to a DO file, you can use DO files in
many different situations in which a regular command file would be too
specific.
If you have more items in your argument list than there are
parameter symbols in the DO file, the extra items are ignored. If
you have fewer items in your argument list than there are parameter
symbols, the extra parameters are ignored.
However, if you do not supply a parameter, the line it appears on
may still be processed, especially if there is a default for the
command that was specified. For example, if a line in your DO file
is DIR SO, and you do not specify that parameter, AMOS will assume
the default of DIR *_*, and process the line in that manner.
Argument list items are associated with parameter symbols NOT in the
order that the parameter symbols appear in the file, but in the
order in which the parameter symbols are numbered. (That is, the
first item in the argument list is associated with parameter SO,
even if parameter S2 appears before SO in the DO file.)
SO S .CMO
:T
VUE SOS1
In the example above, the S represents the fact that the
parameter SO is a null, that is, it does not have a default
setting. The .CMO, then, is the default setting for S1.
So, if you invoke the DO file with an argument list containing
just a filename (which would be SO), without specifying an
extension (S1), you will see something like this:
.LOOK PSTINV [RET)
VUE PSTINV.CMO
This means that if you use your LOOK command without specifying
an extension, it will default to .CMO. Of course, with this
example, if you wanted to specify another extension, you would
have to use this form:
.LOOK PSTINV .TXT [RET)
NOTE: If a $0 line appears in your DO file, it MUST be the
first line of the file (even before a :T or :R symbol).
Below are some examples of the kinds of DO files you can create to
help you perform frequently used sequences of commands.
If you want all of the users on the system to be able to share your
command and DO files, have the System Operator copy them into the
System Command File Library, OSKO:[2,2J. If a command or DO file is
in this account, it can be called by any user on the system without
any disk or account specifications.
TFORM.OO
You can use the text formatting program, TXTFMT, to format a group
of text files so that they form one document. If you always begin
the filespec list with the same file or files, a DO file can be
convenient:
:T
TXTFMT HEADER,PRPNOT,PRFACE,$O
:R
BATCH i Load commands into memory
LOOKUP SO.CMOI <CMD>
,. Is there a CMO file with that fiLename?
GOTO BRANCH i If not, go to BRANCH
VUE S.CMD i If there is, VUE it
EXIT ; End DO file once done with VUE
iBRANCH
LOOKUP $0.001 <DO>
GOTO BRANCH1
VUE SO.OO
EXIT
i BRANCH1
LOOKUP SO.CTLI <CTL>
GOTO BRANCH2
VUE SO.CTL
EXIT
iBRANCH2
LOOKUP $O.TXTI <TXT>
GOTO BRANCH3
VUE SO
EXIT
iBRANCH3
LOOKUP SO.LSTI <LST>
GOTO BRANCH4
VUE $O.LST
EXIT
iBRANCH4
LOOKUP SO.BASI <BAS>
GOTO BRANCH5
VUE SO.BAS
EXIT
;BRANCH5
LOOKUP $O.DATI <OAT>
GOTO BRANCH6
VUE $O.DAT
EXIT
;BRANCH6 ; If the file was not found, print:
,.
:< The file does not exist with any usual extensions.
>
PRINTE.DO
TALK. DO
BACKUP.DO
:T
SET DSKERR ; Report disk errors
:<Backup Account [200,1J of Working Cartridge
onto Archives Cartridge
>
LOG DSK1:[200,1J
COpy DSKO:=$O ; Copy from DSK1:[200,1J to DSKO:[200,1J
:<Change the cartridge to Archives Cartridge;
when ready, press RETURN -
>
:K
MOUNT DSK1:
COpy =DSKO:SO ; Copy from DSKO:[200,1J to DSK1:[200,1J
:<Change the cartridge back to Working Cartridge; when
ready, press RETURN -
>
:K
MOUNT DSK1:
:<Clear DSKO:
>
ERASE DSKO:*.*[200,1J
LOG $:[SPJ ; Return to previous account.
The Task Manager is a batch processing program that aLLows you to use
reaL or pseudo terminals to run tasks without human control.
If some tasks that you do take a long time to run (an hour, for
instance), you can have the Task Manager perform them and still be
able to use your terminal for other things.
You can also schedule tasks to run at specific date and times, and you
can schedule tasks to remain permanently in the queue, running at
specified intervals (such as weekly, monthly, etc.)
See the AMOS/L Task Manager User's Manual, DSS-10010-00, for more
complete information about the use of the Task Manager.
Check with your System Operator to see if the Task Manager is
installed on your system.
In this chapter, we wiLL discuss the use of the various ALpha Micro
Programming Languages. Of course, we wiLL Leave detaiLed instructions to
the specific manuaLs for each Language, but we wiLL give you an idea of what
each Language can do, what appLications each Language wouLd be best for, and
how to access each Language.
These are just the standard Languages that are generaLLy supported. Your
ALpha Micro deaLer may have other Languages avaiLabLe. See him or her for
information about optionaL Languages and their capabiLities.
ALphaBASIC
ALphaPASCAL
ALphaLISP
ALpha Micro AssembLy Language
Over the years since its inception, BASIC has been added to and
modified as new concepts of programming have emerged. Some versions
of BASIC are more extensive than others; the use of these extended
versions allows the programmer a wider range of applications, greater
ease in programming, and/or greater efficiency and speed.
AlphaBASIC is just such an extension of the BASIC language, with
several features not found in other implementations. For example,
AlphaBASIC provides a method for defining sophisticated data record
structures that adds flexibility and efficiency to business-oriented
programs.
These features not only enhance the performance of traditional uses of
the language but also make business applications easier to program.
INTERACTIVE MODE
In Interactive mode you create, edit and test your program whiLe it
resides in temporary memory. This mode is convenient for the
creation and debugging of new programs or for Learning ALphaBASIC.
Type BASIC and a RETURN, and you see:
.BASIC [RET)
READY
There is no prompt symboL, just type in either singLe Lines, or your
program. To exit, type:
.BYE [RET]
READV
BVE [RET]
COMPILER MODE
CompiLer mode is more usefuL for programs which are to be put into
production use, or for testing programs which are too Large to fit
in memory in the interactive mode.
In compiLer mode, you compiLe the program at AMOS command LeveL and
store the compiLed program on the disk.
During the actuaL running of the compiLed program, onLy the compiLed
program and a minimaL run-time execution package need to be in
memory, thereby conserving memory space.
To use compiler mode, use one of the text editing programs (AlphaVUE
is the best for programming) to create your program. When you are
back at AMOS Command level, enter:
• COMPIL MYPROG (RET]
You wiLL then see an asterisk (*). This is the LISP prompt symbol,
and indicates that LISP is waiting for an input. You may then enter
either singLe statements, or the Lines of your program.
To get out of LISP and back to AMOS, enter:
~(EXIn [RET)
In the previous chapters you've Learned many of the most usefuL commands and
features of the ALpha Micro Operating System, but of course there is stiLL
much more. By now, you've mastered the basic skiLLs you need to operate
your system and to create and edit your fiLes and programs.
You know everything that aLL ALpha Micro users need to know, and now you can
move on to the more speciaLized topics that appLy to your particuLar
equipment configuration and your specific business requirements.
Whether' it is a programming Language, a text-editing program, or a hardware
technicaL manuaL, we have documentation avaiLabLe. This chapter wiLL give
you some guideLines for finding the right document for your needs. The
points we wiLL discuss are:
The commands listed below are a few that we feel might be particularly
useful.
SRCCOM Compares the text of two files and shows you where they
are similar and different. This is useful if you are
not sure which of two files is the latest version.
CREATE This command creates an empty file, which you can then
access later and fill.
SET This command has many options. It a llows you to set
certain characteristics of your terminal and other
devices.
DSKANA This command scans the specified disk for errors. It is
a privileged program that can only be used from account
DSKO:[1,2], and is usually run by the System Operator.
See the Cautions in the DSKANA reference sheet before
attempting to use this command.
DATE Displays the date on your terminal. For Example:
.DATE (RET)
Friday, August 2, 1982
TiME Displays the time on your terminal. For Example:
• TIME (RET]
3:00:14 PM
TRMDEF Displays a list of the terminals that are defined on
your system.
DEVTBL Displays a list of all devices defined on your system.
PPN Devn: - Displays the current accounts for a specified disk or
device.
Introductory Texts
Programming Manuals
AlphaBASIC User's Manual OWM-00100-01
AlphaPASCAL User's Manual OWM-001 00-08
AlphaLISP User's Manual OWM-00100-05
AlphaFIX User's Manual OWM-001 00-69
AMOS Assembly Language Programmer's Reference Manual OWM-00100-43
AMOS/L Assembly Language Programmer's Manual OSS-10007-00
AlphaFIX/L User's Manual OSS-10005-00
ISAM System User's Guide OWM-00100-06
AMOS Monitor Calls Manual OWM-00100-42
AMOS/L Monitor Calls Manual OSS-10003-00
W016 Microcomputer Reference Manual OWM-00100-04
AM-100/L Instruction Set OSS-10006-00
You can find special instructions for these tasks in the AMOS System
Operator's Guide, DSS-10001-00, or the AMOS/L System Operator's
Guide, DSS-100002-00.
Below is a list of error messages that you might see when operating at AMOS
command level. For information on the specific error messages you might see
when using a particular command, see the documentation for that command.
The format of the error message may differ slightly between the AMOS and the
AMOS/L systems, but the errors and their solutions are the same.
The most common kind of error message that you will see on the system
consists of two parts. The message begins with:
?Cannot {init, open, close, read, write, input, output, wait,
delete, rename, assign, deassign, allocate record on,
deallocate record on, read bitmap on, write bitmap on,
lock directory on, unlock directory on, allocate random file,
mount, unmount, Load, or access} FiLespec or Devn: -
and ends with one of the messages below (for example: Cannot read AMS3:
- disk not mounted):
- BADBLK.SYS not found
The program BADBLK.SYS was not found on the disk, meaning that it
was erased or somehow lost. See your System Operator for help.
- BADBLK.SYS has a bad hash total
The BADBLK.SYS program is damaged. See your System Operator for
help.
You are trying to OPEN a file out of sequence from the sequence
defined in the LOKGEN program. This occurs if you have the LOKSER
file-Locking system installed on your system. Check the LOKGEN
program for the proper file-opening sequence.
- device does not exist
You've tried to access a device that the syst.em does not
recognize. For example:
.TYPE ASM1:FILE.TXT [RET)
?Cannot init ASM1:FILE.TXT - device does not exist
You probably mis-typed the device name. You can use the DEVTBL
command to see a list of all the devices on the system.
- device error
A hard disk error has occurred; that is, the system was not able
to read data from a disk. Try to perform the operation again. If
you still have no success, check with the System Operator for
help; this message may indicate a hardware problem.
- device full
There is not enough room on the disk to complete the data
transfer. Start over again with another device, or make room on
the first device by erasing unnecessary files.
device in use
Another user is using the non-sharable device that you wish to
access (e.g., a paper tape punch). Wait and try again later.
- device not mounted
You have tried to access a valid system device, but that device is
not mounted. Use the MOUNT command to mount the device, and try
again.
- device not ready
You are trying to access a device that is not ready. For example,
you will see this message if you try to mount a disk before that
device is powered up and ready.
- disk not mounted
The disk drive that the command tried to access is not mounted.
Use the MOUNT command to mount that disk, then try again.
- file already exists
All of the available queue space in LOKSER is used up. Have your
System Operator re-run LOKGEN and allocate more memory blocks.
- MFD is damaged
Your Master File Directory is damaged. Copy as many programs as
you can onto a backup media, and then run the SYSACT program with
the I (initialize) option.
?EM1111 at nnnnnnnn
Your job executed on of the EM1111 instructions which are not
currently used by AMOS/L; they are reserved for future use. This
error is commonly caused by a program which begins executing in
non-existent memory.
ERROR n
You see this message if you SET DSKERR and a soft disk-error
occurs on a system using an AM-200 or AM-210 Floppy Disk
Subsystem. Frequent soft errors can indicate hardware problems
with the drives; check with the System Operator.
The number following ERROR indicates the type of soft error that
occurred; refer to the instruction supplied with the disk drive to
see what error condition corresponds to that error code.
Because this message reports a soft error (the system had to retry
a data read) and not a hard error (where the data could not be
read at all), you do not necessarily have to worry unless you see
a DEVICE ERROR message (see above), which indicates a hard error.
ERROR n CMD n, STS n, RECORD n (TRACK n, SECTOR n)
You see this message if you have SET DSKERR and a soft disk-error
occurs on a system that is using an AM-400 Hard Disk Subsystem.
The number following ERROR indicates the type of soft error that
occurred; refer to the instructions supplied with the disk drive
to find out what error condition corresponds to that error code.
The message tells you where on the disk the error occurred. Check
with the System Operator.
?Illegal instruction at nnnnnnnn
Your job attempted to execute an illegal instruction. Any bit
pattern not currently recognized by the CPU is considered an
illegal instruction.
?Illegal user interrupt on level n
An interrupt occurred on level "n" when none was expected. This
can be caused by a program that does not intitialize the interrupt
vector locations properly, or by faulty hardware that generates
spurious interrupts.
?Insufficient memory for program load
You do not have enough memory in your partition to load the
program you want to execute. Use the MAP command to make sure
that no unnecessary modules are in your memory partition. If you
still receive this message, check with the System Operator to see
if he or she can allocate more memory to your job.
?Login please
You've tried to enter an instruction to AMOS, but you are not
logged into the system. Use the LOG command (see Section
2.4,"Logging on and off the System"). If you need help in figuring
out what to do, you can use the HELP command even if you are not
logged in (see Section 3.1, "The HELP Command").
?Memory allocation failed
You used the monitor call GETMEM from within an assembly language
program to allocate space for a memory module within a memory
partition -- there wasn't enough room in the partition to perform
the allocation. Make sure that no unnecessary modules are in the
memory partition, or see the System Operator about increasing your
memory.
?Memory map destroyed
Each module in your memory partition maintains a pointer to the
address of the next module in memory; if these connecting links
become confused or broken, AMOS is not sure where your memory
modules are in your partition.
You may not need to reset the computer, but you may want to delete
the modules from memory and reload them just to be sure that your
memory map is intact.
?Memory parity error
A memory parity error occurred while your job was running. After
this error occurs on an AM-100/L system, you should examine the
memory boards to determine which one the error occurred on. On
both AM-100/L and AM-1000 systems, the System Operator may want to
perform memory diagnostics to isolate the cause of the parity
error.
?No memory availabLe
The program that you called can only be run from account
DSKO:[1,2J. This is the System Operator's account, and you should
have the System Operator run the command or program for you.
?Privileged program - must be logged into [1,2J
The program can only be run from account [1,2J (on any disk). Log
into [1,2J and run it again.
?Trace return at nnnnnnnn
Your job returned from an instruction trace, but your job's trace
trap address (JOBTRC) was not set up properly.
?TRAPV instruction at nnnnnnnn
Your job executed a TRAPV instruction which caused the trap to be
taken. This instruction is not currently supported by AMOS/L.
? ft specification error
The format of your command line was confusing. For example:
• VUE RND. COMD [RET]
? ft specification error
In the case above, you entered too many characters for the file
extension. Retype the command line, making sure that the syntax
you use is the correct form for that particular command.
You can use fiLe extensions to categorize your fiLes and to indicate the
types of information they contain. The ones Listed beLow have become
standardized to represent specific types of fiLes that you use frequentLy.
What we mean when we say that a fi Le extension is "reserved" is that
commands on the system wiLL often work in different ways depending upon the
fiLe extension. ALso, many of the commands and systems (such as ALphaVUE)
have defauLts buiLt in or set in the system initiaLization command fiLe.
An exampLe is when you use the "G" command to ex it from an ALphaVUE file.
The "G" command is normally used on files with • TXT extensions to format
them with TXTFMT and store the resuLting formatted version on your disk in a
fiLe with a .LST extension. However, if you used a .CMD extension instead
of .TXT on your text fiLe, G wouLd try to execute the fiLe as a command, and
you wouLd get an error message.
ALso, certain programs and commands create intermediate fiLes with
extensions such as .TMP or .IPF that are automaticaLLy deLeted. If any of
your own fiLes has one of these extensions, it is in danger of being written
over and subsequentLy erased from your disk.
If you use ALphaPASCAL or ALpha Micro AssembLy Language, you'LL find
additionaL reserved fiLe extensions that those Lauguages recognize. These
additionaL extensions are expLained in the appropriate programmer's manuaL.
*NOTE: EOL stands for "End Of Line" -- the line the cursor is currently on.
Index
* symboL...... 6-2
(AMOS Prom pt) 4-2
I SLash 4-3
? symbol 6-2
Abbreviations 1-2, 4-2
Account directory. 9-1
Account Libraries. 9-2
Account number 6-2
Accounts 4-4, 9-1
ALL: 6-2
ALphaBASIC 5-2, 6-18, 10-3 to 10-4, 11-1 to 11-2
ALphaLISP • 11-5
ALphaPASCAL • • • • • 6-18, 11-4
ALphaVUE 2-7, 4-4, 5-2 to 5-6, 10-4
Command LeveL • • • • • • 5-4
Errors 5-5
Prompt 2-7, 5-4
AM-1000 Power-up Procedure 2-4
AM-500 • • • • • • • • • • • • • 2-4
AMOS • • • • • • • 1-1 to 1-2, 5-2, 5-4
AMOS command LeveL 2-6, 11-3
AMOS command s • 4-1
APPEND • • • • • 7-1
COpy 5-6, 6-11, 8-3 to 8-4
CREATE 12-2
DATE 12-2
DEVTBL 2-14, 12-2
DIR • • • 5-2, 6-8
DSKANA • • • • • 12-2
DSKCPY 8-5
ERASE 5-8, 6-14
HELP 3-1
JOBS 3-3
LOG •• 2-8
LOGOFF 2-8, 8-2
MOUNT •• 2-13, 8-2, 8-5
PPN •• 12-2
PRINT •• 5-7, 6-18
RENAME 5-7, 6-16
SEND 9-5
SET •• 12-2
SORT 7-3
SRCCOM 12-2
STAT 3-3
SYSTAT 3-3
TIME 12-2
TRMDEF 12-2
TYPE 5-5
AMOS prompt • • 2-7
AMOS/L 1-2
APPEND 7-1
Arguments • 4-1
AssembLy Language • 11-5
Asterisk * . 6-2
Backing up files 8-1
BASIC acronym • 11-1
BASIC Language 11-2
Braces {}. 1-3, 4-2
Brackets [J 6-2
Caret 1-3
Cartridge • 2-3
Changing, disks 2-13
Combining fiLes. 7-2
Command
DefauLts 4-3 to 4-4
Format 4-2
Syntax 4-2, 6-7
Command file 10-1, 10-3
Comments 10-3 to 10-4
Creating 10-3
ExampLe • 10-3
Extensions 10-3
SymboLs • 10-5
Command fiLe symboLs
:< .•• > 10-6
:K 10-6
:P 10-6
:R 10-6
:S 10-6
:T 10-5
,. 10-6
BATCH 10-9
COM • 10-9
CONT 10-7
EXIT 10-8
GOTO 10-8
LOOKUP 10-7
PAUSE • 10-7
Compi Ler mode • 11-3
Cont roL files • 10-17
Teletype 2-7
Terminals 2-2
Definition 2-7
TIME 12-2
TRMDEF 12-2
Turning off the system 2-5
Turning on the system • 2-2
TYPE • • • • • • 5-5
VDT terminal 2-7
Video cassette recorder • 5-6
Video Cassettes • • • 2-2
View Command Buffer • 2-12
VUE • • • • • • • • • • • • • • • 5-5
Wildcard
Account number 6-2
Command syntax 6-6
Defaults 6-6
Infilespec 6-3
outfi lespec 6-4
Wildcard commands
COpy 6-11
DIR •• 6-8
ERASE • 6-14
PRINT • 6-18
RENAME 6-16
Wildcard symbols 6-1 to 6-2, 6-8
[] Brac kets • 6-2
Caret 1-3
{} Braces 1-3, 4-2
[RET) Return symbol 1-3, 4-3
We appreciate your help in evaluating our documentation efforts. Please feel free to attach additional comments.
If you require a written response, check here: 0
NOTE: This form is for comments on documentation only. To submit reports on software problems, use Software
Performance Reports (SPRs), available from Alpha Micro.
Did you find errors in this manual? If so, please specify the error and the number of the page on which it occurred.
Please indicate the type of reader that you represent (check all that apply):
o Programmer:
o Assembly language
o Higher-level language
o Experienced programmer
o Little programming experience
o Student
o Other (please specify):
ORGANIZATION: _________________________________________________________________________
ADDRESS: ______________________________________________________________________________
FOLD
------------------------------------------------------------------------------------.
PLACE
STAMP
HERE
w
Z
..J
Cl
Z
o..J
<C
f-
::)
U
alpha mll:rc
3501 Sunflower
P.O. Box 25059
Santa Ana, CA 92799
TECHNICAL PUBLICATIONS
D _____________________________________________________- - - -_________________________ _
FOLD