Is there a command to scroll to the top of of the file in ISPF? Also, scroll to bottom?
Similar to lower case g in VI.
Also, is there anything like scroll to top of function or scroll to opening bracket?
Thanks
You have a few options. top
and bottom
allows for navigation to the first line and last line. These are aliases for the commands up max
and down max
respectively. For completeness, up xxx
and down xxx
moves the screen up or down xxx lines.
Also you can enter m in the command line
and hit up
or down
pf keys (Pf7 or pf8). You can enter a number on the command line (say 50) and hit Pf7* or pf8 to go up/down 50 lines
Type m on the command line and press PF8 to go to the bottom of the file and PF7 to go to the top of the file.
While ISPF editor has its advantages, it does not have the features found in vi. If you are more familiar with vi, you can try using UNIX System Services where vi is available. There are also ports of vim that run in UNIX System Services.
Once in UNIX System Services shell session, you can use cp command to copy a text file from a data set to a UNIX file, edit it and then use the cp command to copy it back to the data set.