Syntax


APPEND

string

[ line-control-range ]

[ X | NX ]

[ U | NU ]

[ ALL ]

[ TOP ]


Operands


string

The string option is required, and can only be a simple string. i.e. No Picture strings or Regular expression strings. This string will be appended to the end of every line specified by the other APPEND operands.


line-control-range

The range of lines which are to be processed by the command. Line control ranges provide a powerful tool to customize the range of lines to be processed. The full syntax and allowable operands which make up a line control range are discussed in "Line Control Range Specification". Refer to that section of the documentation for details.


ALL

All lines in the line range are processed. 


X | NX

Specifies a subset of the line range to be processed. X requests only excluded lines are to be processed, NX requests only non-excluded lines are to be processed. If neither X or NX are specified, all lines in the range will be eligible to be processed.


U | NU

Specifies a subset of the line range to be processed. U requests only User lines are to be processed, NU requests only non-User lines are to be processed. If neither U or NU are specified, all lines in the range will be processed.


TOP

Normally, at the completion of the command, the first, or only, line processed is highlighted (if it is on the current screen) or the screen is scrolled to the 2nd screen line (as ISPF does) if the line is not on the current screen. If TOP is coded, then the line is always positioned as the top line of the screen, regardless of its current location.



Description


APPEND adds the specified string to all lines specified by the line-control-range, X/NX and ALL operands.


APPEND will work on lines within the line-control-range that are zero-length. This is one technique for converting such lines into lines that are not zero-length.


Example uses of the APPEND command


To append the string ")." to all excluded lines.


APPEND ').' ALL X


To append '---' to lines 10 tru 20 of the file.


APPEND '---' .10 .20


To append '[135]' to all non-excluded lines in the line range 3 thru 200.


APPEND '[135]' nx .3 .200


Comparison to Power Typing


In some cases it is possible to append strings to the right-hand side of a column of values, even if the values are of differing lengths, using Power Typing. See Working with Power Typing Mode for an example of how to do this.

Created with the Personal Edition of HelpNDoc: Effortlessly Create Encrypted, Password-Protected PDFs