Previous Topic: SyntaxNext Topic: PADCHAR


Parameters

OUTLIM supports the following parameter:

number

An integer value between 0 and 999,999,999. The default is 0, which means there is no limit to the number of records that are written to the associated output file.

Example 1

This example syntax limits the number of output records written to the file referenced by the ddname MSTROUT to 10,000 records.

COPY,
  OUTFILE(MSTROUT),
  OUTLIM(10000)

Example 2

This example writes a maximum of 500 records to the associated output files, either NHFILE, NJFILE, NMFILE, or NYFILE, and matching records to the default output file, usually SYSUT1O.

COPY,
  LAYOUTFILE(LAYOUT),
  SELRECIF(STATE-CODE,EQ,C'NH'),
	OUTLIM(500),
	WRITE(NHFILE),
  SELRECIF(STATE-CODE,EQ,C'NJ'),
	OUTLIM(500),
	WRITE(NJFILE),
  SELRECIF(STATE-CODE ,EQ,C'NM'),
	OUTLIM(500),
	WRITE(NMFILE),
  SELRECIF(STATE-CODE ,EQ,C'NY'),
	OUTLIM(500),
	WRITE(NYFILE)