When I run the program I get the error:
:: S
Subroutine "SUB1" called with 1 arguments, 8 were expected"
Program "CALL.PGM": Line 7, Unable to load subroutine.
Subroutine "SUB1" called with 1 arguments, 8 were expected"

Each sub is similar to below
0001:       SUBROUTINE SUB1(RESPONSE)
0002:       RESPONSE = "HELLO"
0003:       RETURN
0004:    END

Thanks Again,
Joe
Program "CALL.PGM": Line 7, Unable to load subroutine.
-----Original Message-----
From: Joseph Ruiz [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 04, 2007 4:58 PM
To: [email protected]
Subject: Spam: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