This is true, but I prefer to use the "end" constructs because they are safer. The safety comes from the compiler complaining about IF and END-Ifs not matching. An errant period generates no such indicator and causes a bug.
-----Original Message----- From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf Of Matthew Stitt Sent: Monday, April 16, 2012 5:45 PM To: [email protected] Subject: Re: GO TO "cobol" If some-test-here-failed Set indicator-switch to true Go to 2000-exit End-if. If some-other-test-fails Set indicator-different-switch to true Go to 2000-exit End-if. ------------------------------------------------------- You could have the exact same result by placing a period after the "2000-exit". Then the End-if is not needed. <gd,r> ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN

