The Unix command man displays manual pages. This command is available on z/OS, but the output was not what I expected – it looked very old fashioned. It was using the pg (pager) command, where I wanted to use the more command.
On my system the output using pg was like
man - Display sections of the online reference manual
Format
man [-wx] [-M path] [section] entry ...
man -k [-M path] keyword ...
Description
man displays help information about both shell commands and the z/OS UNIX set of
TSO/E commands. You can use it to search help files having the specified
keywords associated with them.
(Page 1)
The output from the man command is being formatted with the pg (Display files interactively) command.
The basic pg commands are
- h display the help
- q|Q quit
- (enter) next page
- 4 (enter) go to page 4
- +3(enter) forward 3 pages
- -2(enter) fback 2 pages
- $ display the last page
I wanted man use the more command
You need to set an environment variable
export PAGER=more
Now when I use man … I get
man - Display sections of the online reference manual
Format
man [-wx] [-M path] [section] entry ...
man -k [-M path] keyword ...
Description
man displays help information about both shell commands and the z/OS UNIX set of
TSO/E commands. You can use it to search help files having the specified
keywords associated with them.
--More--(6%)
The more command is more flexible than the pg command.
The basic commands are
- f forward one page
- b backward one page
- q quit
- /data search forward for data
- ?data search backward for data
There are more commands and variations on the commands available.
I set the environment variable in /etc/profile (or you can set it for an individual in ~/.profile)