BNDS (BND) - Documentation for BMC AMI DevX File-AID/MVS 23.01
The BNDS (bounds) line command displays the BNDS information line and permits you to edit it.
BNDS (BND) Line Command Syntax
Multiple BNDS line commands can be executed on different lines at the same time. When each BNDS command is executed, the following symbols are shown on the BNDS information display:
Less-than symbol (<): Left bound position.
Greater than symbol (>): Right bound position.
Vertical bar symbol (|): Both bounds are set to the same position.
One or both symbols might not appear on the display if the corresponding column is not currently displayed.
After the BNDS information line is displayed, you can change the left and/or right bound. To change the left or right bound, type over the BNDS line command with the following characters in the desired columns:
< - to set the new left bound.
> - to set the new right bound.
| - to set both bounds at the same character position.
When you enter new bounds settings, it is not necessary to blank out the old settings. If you blank out the old bounds settings and do not enter new ones, the bounds are set as follows:
Fixed length records:
left bound to column 1 and right bound to the defined record length.
Variable length records:
left bound to column 1 and right bound to one column beyond the defined maximum record length.
If you enter the BNDS line command on the TOP OF DATA the error message: INVALID ON THIS LINE is displayed. You can enter the command on any other line.
If you enter more than one right or left bounds symbol, File-AID scans the line from left to right and uses the first encountered symbol of each type. If it does not find a left bound symbol to the left of the first right bounds symbol, File-AID sets the left edit bound to column 1.
File-AID ignores any extraneous characters you enter on a BNDS information line. If you enter new bound locations on more than one BNDS information line, the results are unpredictable.
A BNDS display retains its position within the data set during scrolling. You can remove the display with the D (delete) line command or the RESET primary command.
Use the PROFILE primary command to display the current BOUNDS settings, which are listed as two integers in the PROF information lines.
You can use the BOUNDS primary command to alter the setting of the edit bounds. If the BOUNDS primary command and BNDS line command are entered simultaneously, File-AID uses the setting of the BOUNDS primary command. You can change the bounds settings also by entering ( (shift left) or ) (shift right) line commands on the BNDS information line.
The bound settings limit the scope of the CHANGE, EXCLUDE, FIND, and SORT primary commands (unless a specific column range is specified with the commands).
These actions cause data shifted beyond the indicated bound to be lost:
- a right shift ( ) ) beyond the right bound
- a left shift ( ( ) beyond the left bound
Refer to Using Edit Bounds with Variable-Length Records for a discussion of special considerations when editing variable-length records using the ( and ) line commands.
A left scroll stops at the left bound, and a right scroll stops at the right bound. An additional left or right scroll goes beyond the bound (assuming the bound is not at the leftmost or rightmost position).