Home SELCOPY CBLVCAT SELCOPY/i Trial/Prices CBL SiteMap
 
Multiple Information Retrieval, Manipulation & Update for IBM Mainframe, iSeries, UNIX & PC Platforms

SELCOPY Examples Menu

Changing record formats is another example of the ease of coding SELCOPY control statements.

A Master file of customer records is kept on tape. Each record holds 40 bytes of fixed information for the customer in the first part of the record, and variable information at the end. The average record length is 600 bytes.

It is a requirement to produce a file containing only the fixed data, to reduce run times during small 'batch windows'. The abbreviated file is to be blocked to 32000 bytes.

 READ  TAPE    RECFM=V
 WRITE TAPE1   LRECL=40   BLKSIZE=32000   RECFM=F

Note that SELCOPY will automatically strip off the 4 bytes of control information when copying from variable to fixed length records.

Top © 2005 Compute (Bridgend) Limited
http://www.cbl.com/selcex04.html
yyyy/mm/dd HH:MM:SS