It’s easy to copy records from the beginning or end of a file using the CPYF (Copy File) command’s FROMRCD, TORCD, and NBRRCDS parameters. For example, the following command copies the first 100 records from a file: CPYF FROMFILE(CUSTOMER) + TOFILE(CstF) + FROMRCD(*START) + TORCD(*END) + NBRRCDS(100) You can also use CPYF to copy records that fall between two specified relative record numbers, as in the following example: ...

REGISTER NOW TO ACCESS THIS ARTICLE

All registered users get access to premium content on iPro Developer for free.

Already registered? Log in here.