HP (Hewlett-Packard) HP 3000 Laptop User Manual


 
562 Chapter 7
Command Definitions S-SO
SETJCW
In the following example the CONTINUE command prevents an abort in case of errors; the
RUN CHEKPROG edits, verifies, and counts valid transactions; the IF command specifies
that if no fatal errors occur, schedule shipments; the RUN command schedules the
shipments; the ELSE command produces the error report and resets the JCW to 0; and the
RUN command produces a final report:
!SETJCW CHEKPROGSTAT=OK
!CONTINUE
!RUN CHEKPROG
! IF CHEKPROGSTAT<FATAL THEN
! RUN SHIPPROG
! ELSE
! SHOWJCW CHEKPROGSTAT
! RUN ERRORRPT
!ENDIF
!RUN FINALRPT
Use
This command may be issued from a session, job, program, or in BREAK. Pressing Break
has no effect on this command.
Examples
To set the job control word CURR1 to 100, and use a comma (,) as the delimiter instead of
an =, enter:
SETJCW CURR1,100
To set CURR1 to the value of the mnemonic WARN, and use a slash (/) as the delimiter
instead of an =, enter:
SETJCW CURR1/WARN
To use an arithmetic operation to set one JCW value relative to another, enter:
SETJCW NEWJCW=LASTJCW + 56
To schedule a full backup job on Saturdays and a partial backup job on the other days of
the week, you could create a user command:
SETJCW FRIDAY=6
IF HPDAY = FRIDAY THEN
SCHEDJOB FULLBKUP;IN=1
ELSE
SCHEDJOB PARTBKUP;IN=1
ENDIF
Related Information
Commands DELETEVAR, SETVAR, SHOWJCW, SHOWVAR
Manuals Appendix A, "Predefined Variables in MPE/iX"