CPCONFIG EXEC - manage SYSTEM CONFIG updates, making backups, running CPSYNTAX, etc.

CPCONFIG EXEC is used to help manage the SYSTEM CONFIG file, and optionally keep the CF1 and CF2 disks in synch. It assumes that the CF1 disk is the primary disk, and CF2 is the backup disk during changes to the CF1 (or should the CF1 disk become unavailable/corrupted).


Syntax:

>--CPCONFIG--+--------------------------------------+------------------------->< +-(-+----------------------------------+ +-NOPROMPT-+--+-TEST-+---+ +-)-+

Where:

NOPROMPT
Eliminates the prompt asking if files should be copied between the the CF1 disks and CF2 disks to synch them up. Instead, the copies will be made without asking, but files copied will be reported.

TEST
Skips CPREL, CPACC, and VMLINK commands permitting tests using **pre-existing** I-CF1 and O-CF2 disks (perhaps TDISK copies of MAINT's CF1 and CF2 disks).


The processing performed by the CPCONFIG EXEC includes:

  • Obtain a R/W link to the CF1 disk as "I" (Input).
  • Prompt the user to ask if optional backups of the "SYSTEM CONFIG" should be made. The backups are made by erasing "-9SYSTEM CONFIG", renaming "-nSYSTEM CONFIG" files upwards sequentially, and then COPYFILEing "SYSTEM CONFIG" to "-1SYSTEM CONFIG".
  • Enter "FILELIST * * I" (to see all CF1 files), permitting update to any and all files in the "I" disk.
  • If the resulting "SYSTEM CONFIG I" was changed, execute "CPSYNTAX SYSTEM CONFIG I" to verify it's syntax.
  • If CPSYNTAX is unsuccessful, exit immediately.
  • If files on the CF2 disk are unique, or newer than those on the CF1 disk, and the NOPROMPT option was not given, ask if they should be automatically copied to the CF1 disk. Do so if requested, or if NOPROMPT was specified.
  • Place the CF1 disk back into production, LINK it R/O as the "I" disk, and obtain R/W access to the CF2 disk as "O" (Output).
  • Copy the "-%SYSTEM CONFIG I" files to the CF2 disk (OLDDATE REPLACE)
  • Copy the "SYSTEM CONFIG I" on the CF1 disk to the CF2 disk (OLDD REPL)
  • If the ?UpdRec1 flag is turned on at the top of this exec (?UpdRec1=1) update the first record of the "SYSTEM CONFIG" on the CF2 disk with the value of the hardcoded "UpdRec1" variable.
  • If files on the CF1 disk are unique, or newer than those on the CF2 disk, and the NOPROMPT option was not given, ask if they should be automatically copied to the CF1 disk. Do so if requested, or if NOPROMPT was specified.

Attachments:
PDF File