You can use the MOVEFILE command, in
command, to place a file in your virtual
from your card reader to another device.
cp spool punch to *
filedef punch punch
filedef input disk coffee exec a1
movefile input punch
conjunction with the FILEDEF
card reader, or to copy a file
For example:
the file COFFEE EXEC A1 is punched to your virtual card punch (in
card-image format) and spooled to your own virtual reader.
Apart from
one or two
using your
punch one
command to
the procedures shown above, that transfer whole files with
commands, there are other methods you can use to create files
virtual card punch. From a program or an EXEC file, you can
line at a time to your virtual punch. Then use the CLOSE close the spool file:
cp close punch
Depending on how the punch was spooled (the TO setting), the virtual
punch file is either punched or transferred to a virtual card reader. USINg lLQ If you write an OS, DOS, or CftS program
that produces punched card output, you should make an appropriate file
definition. If you are an as user, you should use the FILEDEF co •• and
to define the punch as an output data device; if you are a DOS user, you must use the lSSGN command. If you are using the CftS PUNCHC macro, the
punch is assigned for you. The spooling characteristics of your virtual
punch control the destination of the punched outFut. AM The EXEC facilities provide two control
statements for punching cards: &PUMCH, which punches a single line to
the virtual card punch, and &BEGPUNCH, which precedes a number of lines
to be punched. You can also, in an EXEC, use the commands PUNCH and DISK DUMP to punch CMS files. Handling Tape Files in eMS There are a variety of tape functions that you can perform in CftS, and a
number of commands that you can use to control tape operations or to
read or write tape files. One of the advantages of placing files on
tapes is portability: it is a convenient methcd of transferring data
from one real computing system to another. In CMS, you can use tapes
created under other operating systems. There are also two CftS commands, TAPE and DDR, that create tape files in formats unique to CMS, that you
can use to tack up minidisks or to archive or transfer CMS files. Under VM/310, virtual addresses 181 through 184 are usually reserved
for tape devices. In most cases, you can refer to these tapes in CMS by
using the symbolic names TAP1 through TAP4. In any event, before you
can use a tape, you must have it mounted and attached to your virtual
118 IBM VM/370 CMS User's Guide
machine by the system operator. When the tape is attached, you receive
a message. For example, if the operator attaches a tape to your virtual machine at virtual address 181, you receive the message: TAPE 181 ATTACHED
The various types of tape files, and the commands and programs you
can use to read or write them are: TAPE Command: The CMS TAPE command creates files from CMS disk fIles:--They are in a special format, and should only be read by the CMS TAPE LOAD command. For examples of TAPE command operands and options,
see "Using the CMS TAPE Command." TAPPDS Command: The TAPPDS command creates CMS disk files from OS or DOS sequentIal-tape files, or from OS partitioned data sets. TAPEMAC Command: iacro-librarIes program.
The TAPEMAC command creates CMS MACLIB files from OS that were unloaded onto tape with the IEHMOVE utility The MOVEFILE command can copy a sequential tape file
onto disk or a disk file onto tape. Or, it can move files from your
card reader to tape or from tape to your card punch. E!Qg!g!§: You can write programs that read or write sequential tape
files using OS, DOS, or CMS macros. Tapes created by the EXPORT function of access method services can be read only using the access method services IMPORT function. Both the IMPORT and-EXPORT functions can be accomplished in CMS using the AMSERV command. The access method services REPRO function
can also be used to copy sequential tape files. PrQg!g!: The DDR program, invoked with the CMS command DDR, dumps
the contents of a virtual disk onto tape, and should be used to restore
such files to disk. USING THE CMS TAPE COMMAND The CMS TAPE command provides a variety of tape handling functions. It
allows you to selectively dump or load CMS files to and from tapes, as well as to position, rewind, and scan the contents of tapes. You can
use the TAPE command to save the contents of CMS disk files, or to
transfer them from one VM/370 system to another. The following example
shows how to create a CMS tape with three tape files on it, each
containing one or more CMS files, and then shews how you, or another
user, might use the tape at a later time.
The example is in the form of a terminal session and shows, in the
"Terminal Displayn column, the commands and responses you might see. System messages and responses are in uppercase, and user-entered
commands are in lowercase. The nCoaments" column provides explanations
of the commands and responses. Section 1. Using Real Printers, Punches, Readers, and Tapes 119
Previous Page Next Page