Joe:

Any called subroutine needs to be cataloged.  Also, the number of
arguments in the call needs to match the number of
parameters expected by the called subroutine or you will get an error.
The way you have it below you are sending one parameter every time,
using the variable RESPONSE, so the called subroutine must have only one
parameter as well.  Perhaps all the called programs could be changed to
expect one parameter, but that parameter could have multiple values
separated by something or other (e.g. value mark, comma, vertical bar,
something that won't be in the data).

Harold Oaks
Clark County, WA

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Joseph Ruiz
Sent: Wednesday, April 04, 2007 2:58 PM
To: [email protected]
Subject: RE: Spam:Re: [U2] Trying to run UniAdmin with PE`

Does anyone know how to call a program with '@'? I received an error
when testing the code below:

0001:       OPEN "JAR.BP" TO JAR.BP.FILE ELSE ABORT "JAR.BP"
0002:       DEBUG
0003:       READV SUBS FROM JAR.BP.FILE, "SUBS", 1 ELSE GOTO 999
0004:       NO.OF.SUBS = DCOUNT(SUBS,@VM)
0005:       FOR XXX = 1 TO NO.OF.SUBS
0006:          SUB.TO.CALL = SUBS<1,XXX>
0007:          CALL @SUB.TO.CALL(RESPONSE)
0008:          CRT RESPONSE
0009:       NEXT XXX
0010: 999:  STOP
0011:    END

SUBS is a record that contains subroutine names that I would like to
call. Also, do the programs that are used in these types of calls need
to be cataloged? I am using universe.
Thanks
Joe
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to