Gasoline
New Member
Hi,
I've been trying to find out if it is good or bad, to put a single statement within a DO block.
E.g.
versus
The only information I've found is that the DO - END adds to the r-code.
I guess if a whole big system is build using DO END even when not needed, this would decrease performance/consume unnecessary disk space.
Could you please tell me which is the preferred way (best practice) and also why?
Thanks!
I've been trying to find out if it is good or bad, to put a single statement within a DO block.
E.g.
Code:
IF iValue > 1000 THEN DO:
ASSIGN iHighValue = iHighValue + 1.
END.
Code:
IF iValue > 1000 THEN
ASSIGN iHighValue = iHighValue + 1.
I guess if a whole big system is build using DO END even when not needed, this would decrease performance/consume unnecessary disk space.
Could you please tell me which is the preferred way (best practice) and also why?
Thanks!