NetBase for MPE Reference Guide
Chapter 13
13-16
NBCOPY Syntax
The syntax for NBCOPY closely approximates the FCOPY syntax. As a result, it can be easily inserted
into job streams and UDCs where it can replace FCOPY commands. The following table lists the
NBCOPY parameters and what they do.
Parameters
Parameter Description
FROM=
Specifies the file to copy from (input file). If this parameter is not
specified at all, the default FROM file is *QCINPUT. Note that this back-
references a file equation, not a file name. If no file name is specified,
$STDIN is assumed.
If the FROM file is a KSAM file, it will be copied with NOKSAM access
unless the TO file is a KSAM file as well. Deleted records are not
copied.
If you are extracting from a data set, the database name is specified with
the FROM= parameter. The syntax for specifying a database is:
FROM=basename[,password],mode
Where basename is the root file name, password is a valid password for
the base, and mode is one of the read modes of IMAGE, namely 5, 6, 7
or 8. If no password is specified, you must be the creator of the database.
If you omit the password and you are not the creator, NBCOPY will ask
for the password.
If you are copying between machines, NetBase must be running on both
machines. You may specify the nodes either by number or name. The
syntax for specifying nodes is:
FROM=filename[:node]
FROMSET=
Specifies the data set from which records will be read. Of course a
database must be specified with the FROM= parameter if you specify a
FROMSET.
Continued