HPlogo Using KSAM XL: 900 Series HP 3000 Computer Systems > Chapter 2 Creating a KSAM XL File

Modifying Existing File Specifications While Copying

» 

Technical documentation

Complete book in PDF
» Feedback

 » Table of Contents

 » Index

A file equation can be used to modify file specifications of an existing file. The FCOPY subsystem can be used to copy data from an existing file into a new file using a back reference to the file equation for the new specifications. The following example copies data from the file DOC to a new KSAM XL file DOC1. The file type and key specifications for the new file are specified in the file equation.

   FILE DOC1=DOC1;KSAMXL;KEY=(b,1,4)

   FCOPY FROM=DOC;TO=*DOC1;NEW
Feedback to webmaster