Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


Share this Page URL
Help

Invoking the z/OS UNIX shell > Help facilities - Pg. 371

You can improve shell script performance by setting the _BPX_SPAWN_SCRIPT environment variable to YES. if test -f java_memory.class then echo "The Java program is present. Let's execute it now!" java java_memory elif test -f java_memory.java then echo "The Java source is there. Let's compile it first!" javac java_memory.java echo "Now we will executed the Java code." java java_memory else echo "there is no Java source present to compile" fi Figure 9-29 Shell script example Figure 9-29 shows an example of a shell script. This script checks whether there is a specific Java class available. If it is present, it is executed. If it is not present, the script checks to see if the source is available. If yes, the source is compiled and the Java program is executed. 9.4.8 Help facilities An optional step for the installation of the UNIX System Services environment is to install books and a bookshelf® for the online help facility. This facility enables you to find information about shell commands, shell messages, callable services, and C functions. Once the books are installed, this facility is accessed via the TSO/E command OHELP. The help facility uses the BookManager READ element. In order to be able to use this facility, it is necessary to have the BookManager READ product installed on your system. If you have BookManager READ installed, you can easily set up the OHELP configuration. For that, you have to copy the sample file /samples/ohelp.ENU to the /etc directory or to your $HOME directory. After that, open the file for editing with the OEDIT command, for example. Change the listed books and bookshelf so they match the data set naming convention in your z/OS environment. See also Figure 9-30 on page 372. Chapter 9. Interacting with z/OS UNIX 371