Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

@DO (format 2) - Activate or deactivate logging

&pagelevel(3)&pagelevel

This format of the @DO statement can be used to suspend or activate the logging of the read statements (see the PRINT operand in format 1 of the @DO statement) at any location within the procedure.

Operation

Operands

@PROC

@DO

{ N | P }

N

EDT no longer logs the following lines of the procedure before they are
executed.

P

EDT logs the following lines of the procedure before they are executed.

This statement can also be used for troubleshooting in EDT procedures. It is possible to find out, for example, whether a specific part of a procedure has been processed or not.

Example

1.     @PROC 5 ------------------------------------------------------- (1)
1.     @ @SET #S5 = 'A'
2.     @ @DO N ------------------------------------------------------- (2)
3.     @ @CREATE #S6: 'B'*6,#S5
4.     @ @CREATE #S7: #S6,'C',#S6
5.     @ @DO P
6.     @ @PRINT #S5.-#S7 --------------------------------------------- (3)
7.     @ @DELETE #S5.-#S7
8.     @END ---------------------------------------------------------- (4)
1.     @DO 5 PRINT --------------------------------------------------- (5)
1.     @SET #S5 = 'A'
1.     @DO N
1.     @PRINT #S5.-#S7
  #S05 A
  #S06 BBBBBBA
  #S07 BBBBBBACBBBBBBA
1.     @DELETE #S5.-#S7
1.
(1)Processing switches to work file 5.
(2)The lines that follow in the procedure are no longer logged.
(3)EDT logs the following lines of the procedure before execution.
(4)Processing returns to work file 0.
(5)

The procedure in work file 5 is started. The statements are to be logged before being executed.