SET_OLEN

Figure 1. Syntax

1  SET_OLEN (
2.1! length(inrec)
2.1 length
1 ,
2.1 pad
1 )
Note: Commas following the last specified argument can be omitted.

Can be used in FASTREXX procedures.

Sets the length of the output record. If the specified length is greater than the current length of the output record, the pad character is used to fill out the record to the specified length. If the specified length is less than the current OUTPOS, OUTPOS is reset to the new length + 1.

Returns
A single blank.
length
Length, in bytes, to set. Must be a non-negative integer. The default value is the length of the input record (which is also the original length of the output record).
pad
Pad character. Defaults to the pad character set on the File Manager System Processing Options panel. If the current pad setting is OFF, the default pad character is a blank.

Example

Set the length of the current output record to 80.

  SET_OLEN(80)