Yes, the S0903 program has some PRINT statements.  It also has some INPUT
statements.  I was hoping that I could just use the UniCommand.reply()
method to provide the inputs to this call.



Does the troublesome BASIC make any use of terminal driver capability, even
perhaps the @ function to switch off the "press any key" prompt?  Any
SET.TERM.TYPE, GET.TERM.TYPE, TTYCTL() calls or the like?  PRINT (or CRT or
DISPLAY) statements?
UniObjects connections do not, of course, have any terminal capabilities.

----- Original Message -----
From: [EMAIL PROTECTED]
Date: Thu, 11 Mar 2004 14:12:55 -0500
To: [EMAIL PROTECTED]
Subject: Executing Basic Programs from UniObjects for Java

> I am trying to execute a basic program using the  UniSession and
UniCommand
> classes.  I have done this with other basic programs that are on the
> Universe system without any problems.  For the one I am trying to use now
I
> get back an error message from the response method that reads:
>
> TERMTYPE IS NOT SETUP FOR THIS USER PORT
>
> The only difference that I can see with this basic program vs the other
> basic programs that I have working with this method is that this one
makes
> a call to a basic subroutine.
>
> My java code looks something like this:
>
>  // session is the currently connected UniSession
>          UniCommand unicom = session.command();
> // COSTEST is the basic program on the host machine
>          unicom.setCommand("RUN COSTEST");
>          unicom.exec();
>          String resp = unicom.response();
>
> Upon execution, the value of resp =   TERMTYPE IS NOT SETUP FOR THIS USER
> PORT
>
> COSTEST is a cataloged basic program on the host system with this line in
> it:
>       .........
>       CALL S0903(CO,FILE,PGM,SEL,INITS)
>       .........
>
> If I comment out this line the program runs OK but the data that it
returns
> is not correct.  Any suggestions?
>
> Thanks,
> Jim
>
>
> --
> u2-users mailing list
> [EMAIL PROTECTED]
> http://www.oliver.com/mailman/listinfo/u2-users
>

--
u2-users mailing list
[EMAIL PROTECTED]
http://www.oliver.com/mailman/listinfo/u2-users





-- 
u2-users mailing list
[EMAIL PROTECTED]
http://www.oliver.com/mailman/listinfo/u2-users

Reply via email to