NetBase for MPE Reference Guide

Chapter 13
13-22
Examples
Copy the file HISTORY.DATA to the file BACKUP.DATA. In this example, BACKUP.DATA does not
necessarily have to exist. If it does, it will be erased (EOF set to 0) before the copy begins.
: RUN NBCOPY.PUB.NETBASE
NBCOPY [x.x] (C) QUEST Software 1996
> FROM=HISTORY.DATA;TO=BACKUP.DATA
{Statistics are printed at the end of the copy}
> EXIT
:
Copy the KSAM file COPYLIB.SOURCE to the file COPYX. If COPYX does not exist, it will be built
exactly like the data file for COPYLIB.SOURCE, but it will not be KSAM.
> FROM=COPYLIB.SOURCE;TO=COPYX
Note. COPYX records will be in the chronological sequence of the file COPYLIB.SOURCE.
Any deleted records in COPYLIB.SOURCE will be ignored.
Copy the KSAM file COPYLIB.SOURCE to the new KSAM file NBNEW.SOURCE. The new keyfile
name will be NBNEWK.SOURCE.
> FROM=COPYLIB.SOURCE;TO= NBNEW.SOURCE;KEYFILE= NBNEWK
Copy the file BADBLOCK to the new file OKBLOCK. The blocking factor on OKBLOCK is being
changed to 16.
> FROM=BADBLOCK;TO=OKBLOCK;BF=16
Copy the file TOIBM.PUB.CONV to the file TOIBM.DATA and convert the data to EBCDIC. In addition,
release any unused space in TOIBM.DATA when done.
> FROM=TOIBM.PUB.CONV;TO=TOIBM.DATA;EBCDICOUT;RELEASE
Change the limit on the file, TOOSMALL.RBM, from whatever it is now to 10,000.
> FROM=TOOSMALL.RBM;LIMIT=10000