Why not form GO TO blocks?

Example:
5 C   Print Menu
T C
O MENU
10 C  Input Menu Option 
IP
IF A = 1 GO 100
IF A = 2 GO 200
IF A = 3 GO 300
GO 10
100 C  First menu Option
HRUN USER.PL BASIC.PGM1
P
HRUN USER.PL BASIC.PGM2
P
GO 5
200 C  Second Menu Option
HRUN USER.PL BASIC.PGM4
P
HRUN USER.PL BASIC.PGM2
P
GO 5
300 C
Command
Command
Command
GO 5 

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Bob Woodward
Sent: Wednesday, January 11, 2006 9:35 AM
To: U2-Users List
Subject: [U2] PROC Question

Hi folks,

I can't find anything in the IBM Doc's for ProVerb's that tells me how
to create an entry that will allow me to put multiple commands on a
single line.  In a nutshell, from a "menu" when a user selects an
option, I want to be able to execute multiple commands.

Currently, I use multiple lines such as:
   IF A = 5 [USER.PL BASIC.PGM1
   IF A = 5 [USER.PL BASIC.PGM2
   IF A = 5 G 10

What I want to be able to do is:
   IF A = 5 [USER.PL BASIC.PGM1];[USER.PL BASIC.PGM2];G 10

Is my mind fried?  Maybe...  But is there something that will work?

BobW
-------
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/
-------
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to