I'm not exactly sure how much I need to explain, so I'll give you a brief explanation, but if you need more information, just ask.
Unix shells (including those in PASE, as well as QShell) use an environment variable called PATH to determine where to look for a program. You can think of PATH as being similar to a *LIBL -- except that it's made of IFS path names instead of libraries. Another difference is that PATH is only used to locate PROGRAMS, it's not used for files, data areas, or any of that other stuff we get with *LIBL.
Anyway, PATH consists of a list of IFS directories separated by colons. To see what your PATH is right now inside QP2TERM, type the following:
echo $PATH
The "echo" utility prints stuff on the screen. Any time you see a dollar sign ($) it means "insert variable value here". So "echo $PATH" means "insert the value of the PATH variable -- then print it."
I should also note that PATH is case-sensitive. It must be all uppecase "PATH", not "path".
It sounds like you put 7z in /usr/local/bin, but /usr/local/bin isn't in your PATH, so it's not looking there for program names. An easy way to fix that is to do:
export PATH=$PATH:/usr/local/bin
So this changes the value of PATH. It inserts the current PATH value (again, using the dollar sign) and adds :/usr/local/bin to the end. after running that command, it should find 7z -- but that'll only work until you exit PASE, because you only changed it for the current session. Now there are many approaches to changing it so that /usr/local/bin is always in your PATH -- but I don't want to try to explain every possibility, so I'll just give you one way.
display your existing path, and copy/paste it into Notepad or something like that.
Then add
:/usr/local/bin to the end.
Then run the following command from the standard (not PASE) command line:
*ADDENVVAR ENVVAR(PASE_PATH) VALUE('whatever you want in your path') LEVEL(*SYS)*
For example:
*ADDENVVAR ENVVAR(PASE_PATH) VALUE('/QOpenSys/usr/bin:/usr/ccs/bin:/QOpenSys/usr/bin/X11:/usr/sbin:.:/usr/bin:/usr/local/bin:/usr/local/Zend/Core/bin:/usr/local/mysql/mysql/bin:/usr/local/bin') LEVEL(*SYS)*
On my system, I've added /usr/local/bin, but I've also added Zend Core and MySQL... hope you get the idea. Anyway, once you've set the PASE_PATH (like PATH, this name is case-sensitive) you should sign-off and back on again for this to take effect. From that point on, it should always find programs in /usr/local/bin automatically.