04-18-2014 04:49 AM
There is no "working scenario", because:
|20||do i= 01 to 04;|
|22||j=01 to 04;|
ERROR 388-185: Expecting an arithmetic operator.
ERROR 202-322: The option or parameter is not recognized and will be ignored.
04-19-2014 12:53 PM
Post an example of the code you tested and a specific question about it.
A simple iterative DO loop like in your original question work the same as in any other language.
The DO statement in SAS actual has many variations and can be extremely powerful, but without more details of what you are trying to do it is hard to give specific advice.
Here is link to on-line document for the iterative form of DO.