How can I correlate fixed-form branching commands GO END and GO NEXT REQUEST to ASL syntax?
ASL was designed with structured programming in mind. Branches are controlled.
GO REQUEST requestname translates simply to CALL type requestname, but branching to other logic points such as GO END and GO NEXT REQUEST are different.
If the intent is to exit the current process, and continue with the next segment occurrence within a loop as one would have used a fixed format GO END, the ASL equivalent is CONTINUE.
To get to the next PROCEDURE, where you would use a fixed format GO NEXT REQUEST, use RETURN and a series of CALL statements
MAIN:
CALL PROC REQ1 << use RETURN in REQ1 to get back here CALL PROC REQ2 << then invoke REQ2
REQ1: PROC TYPE SUBROUTINE IF . . . . . . process . . . RETURN ELSE . . . process . . . RETURN END IF END REQ2: PROC TYPE SUBROUTINE
. . . process . . .
END
Refer to Appendix B of the ASL Reference Guide
See pages 4-16 & 4-27