HP3000-L Archives

December 1997, Week 3

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
"Dr. Ferenc Nagy" <[log in to unmask]>
Reply To:
Dr. Ferenc Nagy
Date:
Mon, 15 Dec 1997 10:37:48 +0100
Content-Type:
TEXT/PLAIN
Parts/Attachments:
TEXT/PLAIN (96 lines)
On Wed, 10 Dec 1997, Stan Sieler wrote:

> Frank asks:
>
> > How can I use a terminal as the standard input and output of program,
> > which is running from a _j_o_b_ ?
>
> Identify the terminal, determine the LDEV.  (Let's say it's 31)
>
> In the batch job, do something like the following (or equivalent):
>
>    :file term, new; dev=31; acc=inout
>
>    :run prog; stdin=*term; stdlist=*term
>
> As earlier poster mentioned, the ldev must be in the AVAIL state.
----
Gilles Schipper gave the correct file equation:

- which would be true of network devices.

> Also, the the file equation may or may not be for A264X. You would use:

> :file a264x;dev=nn

> only if using entry.pub.sys or a program which uses the actual
>designator
>of A264X - which, as far as I know, would be entry and perhaps reformat
>and
>refspec. Any other VPLUS program would need whatever file equation would
>correspond to the file name passed to the VOPENTERM intrinsic call. That
>could be anything - you need to look at the source or use a tool (such as
>glance) to determine the name of the open file.




>Jerry Fochtman wrote:
>> It's been awhile....but I believe if you haven't overridden the
>> default file name used by VPLus to open the terminal device,
>> you can re-direct all the screen I/O to another terminal by
>> issuing a file equation for 'A264X'.  The target terminal device
>> must be connected and 'AVAIL' (e.g. no one signed-on or in the
>> process of signing on as signalled by a <cr>).

Many thanks, Gilles, Jerry, Stan:

The results of my trials are in the following job which a streamed from
terminal #34.
!job terminal,nf/********.ikinfo/********
!COMMENT TERMINAL FROM JOB
!TELL MGR.IKINFO RUN TO TERMINAL #23
!COMMENT FILE A264X IS USED BY ENTRY.
!FILE A264X,NEW;DEV=23;ACC=INOUT
!continue
!RUN ENTRY.PUB.SYS;STDIN=*A264X;STDLIST=*A264X
!file about=about,old
!file output=formout,old
!setjcw dexlibtrace=1
!continue
!build hpdtrace;rec=-79,16,f,ascii;nocctl;cir;disc=5000,32
!COMMENT FILE HP2392A IS USED BY HiLi INTRINSIC HPDENABLETERM
!FILE HP2392A,NEW;DEV=23;ACC=INOUT
!continue
!COMMENT THIS IS MY PASCAL PROGRAM WHICH USES HiLi INTRINSICS.
!RUN ABEL.NF.IKINFO;STACK=20000;STDIN=*HP2392A;STDLIST=*HP2392A
!eoj
As you can see, ENTRY expects the terminal as FILE A264X, bit the HiLi
intrinsics expect it as FILE HP2392A.
When I tried the FILE A264X I got returnstatus -4 and sublayerstatus 9
form HPDENABLETERM.

A264X is mentioned in the BASIC sample program of the VPLUS manual.
HP2392A is passed to the HPDENABLETERM in the TERMPAK.TERMNAME field but
the Terminal/language selection menu had of the used form had an "X"
at HP264 family.


:-) Now I can stream the required job but it will fail if a zealous saver
switches off the terminal of the power of the building during the
Christmas holidays.

                        Merry Christmas and Happy new year for the List
Members.

Don't expect me to read e-mail from December 18, 1997 to January 4, 1998.
                                             Frank

  |\    /~ ~~|~~~ Family : NAGY; first name : FERENC; title : Ph. D.
  | \   |    |    Institute of Isotopes of the Hungarian Academy of Sciences
  |  \  |   -+-   H-1121 BUDAPEST Konkoly-Thege M. ut 29, (1525 Bp. POB 77)
  |   \ |    |    [log in to unmask]  (36-1)-395-9123 Fax: ~395-9002
  |    \|    |    http://alpha0.iki.kfki.hu/~nagyf/
`-'     '  `-'    Home: H-1102 BUDAPEST Holgy u. 8. I. 8. (36-1)-262-1198.
The lazy man gets tired twice, the miser pays doubly.

ATOM RSS1 RSS2