NetBase for MPE Reference Guide
NetBase Utilities
13-23
Extract every entry in the data set CUSTOMERS from the database AR and put it into the new file
CUSTFILE.
> FROM=AR,,5;FROMSET=CUSTOMERS;TO=CUSTFILE
Put records in the file CUSTFILE into the data set OLD-CUSTS of the HIST database:
> FROM=CUSTFILE;TO=HIST,,1;TOSET=OLD-CUSTS
To reblock and expand the file BIGFILE.
> FROM=BIGFILE;LIMIT=100000;BF=
To expand the KSAM file NAMELOOK and ignore any duplicate keys.
>FROM=NAMELOOK;LIMIT=50000;IGNERR
Occasionally, a KSAM file is damaged internally, resulting in duplicate keys even though duplicate
keys are not allowed. NBCOPY can correct this problem.
> FROM=NAMELOOK
Copy the file, USERFILE on DAFFY (nodename) to the USERS data set in the BIGBASE database on
SILVER (nodename).
> FROM=USERFILE:DAFFY;TO=BIGBASE:SILVER,PRESDENT,3;TOSET=USERS
Copy the file, STOREME, to tape and reblock to minimize wasted space.
: FILE TAPE;DEV=TAPE
> FROM=STOREME.DATA.BACKACCT;TO=*TAPE;REBLOCK
Copy the database, CUSTBASE on SystemA to the HISTORY database on SystemB.
> FROM=CUSTBASE:SYSTEMA;TO=HISTORY:SYSTEMB;COPYBASE