View previous topic :: View next topic
|
Author |
Message |
Harvey Sullivan
New User
Joined: 05 Nov 2007 Posts: 19 Location: Monterey CA
|
|
|
|
is there an easy way to find missing or extra end; statements? I have a very large program, many procs and many do statements and do loops is there any way to match them up to solve the problem without doing it by hand? TIA, Harvey |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
If a compilation does not "flag" them, might they be correct?
If they are syntactically correct, analysis may be needed to determine if they are "good" or not. . .
If i'm way off, please ignore - dain brammage - long week today |
|
Back to top |
|
|
Harvey Sullivan
New User
Joined: 05 Nov 2007 Posts: 19 Location: Monterey CA
|
|
|
|
Sorry, the compiler does flag it with this:
IBM1861I S All statements other than DECLARE, DEFAULT and PROCEDURE statements must be contained inside a PROCEDURE. Explanation: This message can occur, for instance, if the first PROCEDURE statement is invalid or if a PROCEDURE contains too many END statements.
it flags the last statement of a 2500 statement program. The first procedure statemnt is OK. |
|
Back to top |
|
|
Phrzby Phil
Senior Member
Joined: 31 Oct 2006 Posts: 1042 Location: Richmond, Virginia
|
|
|
|
The compile listing also has BLOCK and DO counters down the left (may be an option. Check if each BLOCK and DO matches with the END you think it should (you did indent properly I hope). If not, you have a problem within that group. |
|
Back to top |
|
|
|