TRUNC

Read syntax diagramSkip visual syntax diagram
>>-TRUNC--column-----------------------------------------------><

TRUNC truncates each line in the file to the given length.

Operands

column
specifies the last column you want to keep.

Return codes

0
Normal return
202
Invalid operand

Example

'TRUNC 72'

This example truncates all lines in the file to a length of 72 characters.

Note

This command is useful when you are working with data sets that have sequence numbers that require removing. The editor does not currently have support for placing or maintaining sequence numbers in a file.



rvse542.html | Timestamp icon Last updated: Monday, 5 June 2017