Previous Topic: SyntaxNext Topic: PADCHAR


Parameters

OUTLIM supports the following parameter:

number

An integer value between 0 and 999,999,999. Zero is the default value and does not set any maximum number of records written to the associated output file.

Example 1

This example syntax limits the number of output records written to the default output file SYSUT1O to 10,000.

COPY,
  OUTLIM(10000)

Example 2

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 3

This example writes a maximum of 500 records for each selection criteria to the primary output file, usually SYSUT1O.

COPY,
  LAYOUTFILE(LAYOUT),
  SELRECIF(STATE-CODE,EQ,C'NH'),
	OUTLIM(500),
  SELRECIF(STATE-CODE ,EQ,C'NJ'),
	OUTLIM(500),
  SELRECIF(STATE-CODE ,EQ,C'NM'),
	OUTLIM(500),
  SELRECIF(STATE-CODE ,EQ,C'NY'),
	OUTLIM(500) 

Example 4

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)