z/OS DFSMS Access Method Services Commands
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Using Nested IF Commands: Example 2

z/OS DFSMS Access Method Services Commands
SC23-6846-01

In this example, nested IF commands are used to determine whether the program should run a REPRO command or a PRINT command.
IF LASTCC > 4  -
  THEN IF MAXCC < 12  -
    THEN REPRO ...
    ELSE
  ELSE IF LASTCC = 4  -
    THEN PRINT ...

If LASTCC is greater than 4, and MAXCC is 12 or greater, no functional commands are run. Use the null ELSE command to indicate that the next ELSE is to correspond to the first THEN.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014