Figure 3-6. JCW Notation Examples

Using a System JCW

The following job sho ws an example of using a system JCW:

:JOB STUDENT.INTRO/PASSWORD :CONTINUE

:FTNXL ABC

:IF JCW<FATAL THEN

:LINK $OLDPASS,ABCPROG

:SAVE ABCPROG

:RUN ABCPROG

:ELSE

:SAVE $OLDPASS,ABCOBJ

:ENDIF

:SHOWJCW

:EOJ

This job compiles an HP F ORTRAN 77/iX program. If it w orks, you want to link the object ￿le to your program ￿le and run the program. If a problem occurs during the compile, y ou want to save the ￿le and end the job.

If an error occurs, HP F ORTRAN 77/iX sets JCW = FATAL , so the job tests the v alue of the JCW against the value FATAL (FATAL is the same as FATAL0 or 32768 ). The :CONTINUE command causes the job to proceed ev en if the

Program Development 3-23