HDTenEightyP/NetNews huggingface dataset:
From: fenster@taveng.enet.dec.com (Yaacov Fenster)
Subject: Re: Descriptors and VMS C (again!)
Reply-To: fenster@taveng.enet.dec.com
Organization: "Expert Systems Industries (Sub contract to Dec)"
Date: Mon, 13 Apr 1992 08:53:48 GMT


In article <01GIQ5J6JQXS0015JN@CC.OWU.EDU>, SVVAIKUN@OWUCOMCN.BITNET (Ram Samudrala) writes:
>
>Someone here posted a question on the RTL routine lib$find_file a while ago.
>This got me interested in the RTL and programming using descriptors. Since C is
>my preferred language, I decided to experiment with several RTL functions. I
>was able to successfully write several programs using string descriptors.
>However, there is one function which still doesn't work right in C for me. I
>have managed to make it work in pascal, but for some reason I can't find the
>error. The output I get for this program (which usest the routine
>lib$find_file) is just a bunch of newlines. I don't understand why this
>happens. We don't have a VAX C manual here, so I try to learn by looking at
>other people's code. In fact, the loop in the program here is basically one I
>saw on INFO-VAX a while ago.
>
>/* program to list files in a directory */
>
>#include <stdio.h>
>#include <descrip.h>
>#include <rmsdef.h>
>
>int main (argc, argv)
>        int argc; char *argv[];
>{
>        long int status,
>                 rv,
>                 context;
>        char    *file,
>                *dir,
>                tmp_file[255],
>                tmp_dir[255];
>
>  $DESCRIPTOR(directory, tmp_dir);
>  $DESCRIPTOR(filename, tmp_file);
>
>  file = (char *) malloc(255);
>  dir = (char *) malloc(255);
>  strcpy(dir,"*.*;*");

The problem is in the following lines, the "descriptor" function 
sets the w_length to be strlen() which right after malloc is probably
0.....

>  descriptor(&directory,dir);
>  descriptor(&filename, file);
>  while ((rv = lib$find_file(&directory, &filename, &context)) != RMS$_NMF)
>   {
>     printf("%s\n",file);
>   }
> status = lib$find_file_end(&context);
>}
>
>descriptor(desc,str)
>        struct dsc$descriptor_s *desc;
>        char *str;
>{
>        desc->dsc$w_length=strlen(str);
>        desc->dsc$b_dtype=DSC$K_DTYPE_T;
>        desc->dsc$b_class=DSC$K_CLASS_S;
>        desc->dsc$a_pointer=str;
>}
>
>/* end of program */
>
>Does anyone see something wrong with this??? Thanks a lot in advance!
>
>--Ram
>
>
>+--------------------------+-----------------------+-------------------------+
>| svvaikun@owucomcn.bitnet | svvaikun@rs6k.owu.edu | All that lives is born  |
>| svvaikun@cc.owu.edu      | svvaikun@zeus.owu.edu | to die - Led Zeppelin   |
>+--------------------------+-----------------------+-------------------------+
>
>
--
-------------------------------------------------
Yaacov Fenster			+(972)-3-9307239
y.fenster@ieee.org	
fenster@taveng.enet.dec.com	DTN 882-3141
All the opinions voiced are mine alone and do not reflect anyone else's 
opinion. (Including Dec).
Newsgroups: comp.os.vms
Subject: Re: How to tell DIALUP from DCL?
From: cctr127@csc.canterbury.ac.nz (Jason Haar, Network Consultant, CSC)
Date: 16 Apr 92 08:48:02 +1200
Organization: University of Canterbury, Christchurch, New Zealand

In article <1992Apr15.125320.4689@csc.canterbury.ac.nz>, I wrote:
> 
> Can you figure out whether an account has dialup access from the command-line
> (e.g. via lexicals)?

I received several replies to this message (within hours too - thanks guys!).

They all said the same thing - it's a non issue. Just ensure that the terminal
server has the relevant ports defined as DIALUP (via DEFINE PORT nnn DIALUP 
ENABLED), and this will be treated by the UAF identically to a hard-wired modem
connection.

Again, thanks

Jason Haar.
Newsgroups: comp.os.vms
Subject: Re: Wanted - callable F$environment
From: domiller@ualr.edu
Date: 13 Apr 92 10:39:18 GMT
Organization: University of Arkansas at Little Rock

In article <1992Apr13.151327.1@cc.curtin.edu.au>, crobw@cc.curtin.edu.au writes:
> Is it possible for a high-level language, e.g. Fortran, to determine the full
> file specification of the .COM file from which it is running? In other words, I
> need something like a callable f$environment.
                        ^^^^^^^^^^^^^^^^^^^^^^
That would be useful.  However, the following piece of code does what you
requested.
	Dale
P.S. CMKRNL required.
 ----------------------------------------------------------------------------
 | Dale O. Miller                          | #   #  ###  #     ####         |
 | University of Arkansas at Little Rock   | #   # #   # #     #   #        |
 | 2801 S. University                      | #   # ##### #     ####         |
 | Little Rock, AR  72204-1099  USA        | #   # #   # #     #  #         |
 | (501)569-8714                           |  ###  #   # ##### #   #        |
 | DOMILLER@UALR.EDU, DOMILLER@UALR.BITNET | Disclaimer: This does not      |
 | 92-20-28 W,34-43-30 N.ICBMNET           | say what I say it doesn't say. |
 ----------------------------------------------------------------------------

	.TITLE CHECKDIR
	.IDENT /1.0/
;-------------------------------------------------------------------------------
;
;	This routine returns the name of the currently executing command
;	procedure.
;
;	Call with the address of a string descriptor.
;	Status is returned in R0
;
;-------------------------------------------------------------------------------

	.LIBRARY /SYS$LIBRARY:LIB/	; Executive macro library
	.LINK 'SYS$SYSTEM:SYS.STB'/SELECTIVE_SEARCH
	.LINK "SYS$SYSTEM:DCLDEF.STB"/SELECTIVE_SEARCH

	$PCBDEF				; Process Control Block offsets
	$STSDEF				; Command Lang defs
	$UAIDEF
;-------------------------------------------------------------------------------

	.PSECT	CODE RD,NOWRT,PIC,EXE,LONG
	.ENTRY	CHECKDIR ^M<r6,r7,r8>		; Routine entry point
	movzwl	@4(ap),r6
	movl	4(ap),r7

        $CMEXEC_S ROUTIN=200$		;call the retreival code in EXEC mode
        BLBS	R0,5$			;quit if problem (nopriv)
	BRW	90$
5$:	MOVL	#SS$_NORMAL,R0
90$:	RET				; back to the caller

200$:   .WORD   0			; Exec entry point
        MOVAL   G^CTL$AG_CLIDATA, R1    ;get address of process's cli area
        MOVAL   @PPD$L_PRC(R1), R1      ;pointer to process permanent data
        MOVAL   @PRC_L_IDFLNK(R1), R1   ;   "    to indirect command file
        MOVAB   @IDF_L_FILENAME(R1), R1 ;   "    to command proc name
        MOVZBl  (R1), r8		;save length of name
        MOVC5   r8, 1(R1), #^A' ', -	;copy name--padded with blanks--
                r6, @4(r7)		; into passed string
        MOVZWL  #SS$_NORMAL, R0		; Set success
        RET				; Return from exec
;
	.END
Newsgroups: comp.os.vms
From: pnd@jach.hawaii.edu (Phil Daly, JAC, 665 Komohana St, Hilo HI 96720, USA)
Subject: SET DISPLAY/SCREEN=??
Reply-To: pnd@jach.hawaii.edu
Organization: UK/Canada/Netherlands Joint Astronomy Centre, Hilo, HI
Date: Wed, 8 Apr 1992 06:32:56 GMT

Is there a way to re-direct output from a DECwindows application to
more than one screen at a time? I would like to do something like

  $ SET DISPLAY/CREATE/NODE=(MYVAX,YOURVAX)


The documentation mentions the /SCREEN option and suggests that some
configurations can do this. Another poster mentioned the fact that

   $ SET DISPLAY/CREATE/NODE=curly

is equivalent to

   $ DEFINE DECW$DISPLAY CURLY::WSA0:

but this doesn't seem to work for me. I was trying to fool the VAX with

  $ DEFINE DECW$DISPLAY "CURLY::WSA0:","LARRY::WSA0:"

but to no avail. Any ideas??
From: jbasara@ssdc.UUCP (Jim Basara)
Newsgroups: comp.os.vms
Subject: Re: What's the real difference between a symbol and a logical?
Date: 8 Apr 92 12:37:52 GMT
Organization: Sterling Software IMD, Vienna, Va.


A related question:

    Since symbols are handled via the CLI, is there a difference/advantage/
disadvantage to using the Command Definition Utility to define commands
instead of symbols.  I realize all of the parsing advantages, but suppose
I just wanted to define a single word command without qualifiers and/or
parameters.  Are symbols and CDU commands handled the same way?

thanks,

jim


--
-------------------------------------------------------------------------------
Jim Basara
     uunet!ssdc!jbasara                "All the other nations are drinking
     jbasara%ssdc@uunet.uu.net         Ray Charles beer, and we are drinking
                                       Barry Manilow." - Dave Barry
From: vaxs06@v7.vitro.com (Frank Monroe, Jr.)
Newsgroups: comp.os.vms
Subject: Re: two decwindows motif questions
Date: 7 Apr 92 07:48:52 -0400
Organization: Vitro Corporation

> =o= I generally predicate my checks on the presence of a
> DECW$DISPLAY logical name.  This isn't bulletproof either,
> since a malicious user could define such a logical name by
> hand.  The ideal solution would be a lexical function that
> retrieves the info one gets from the SHOW DISPLAY command.
> I imagine this would be added to f$environment(), but maybe
> it should be added to sys$getdvi() (and thus f$getdvi()).

There is an undocumented way to do this.  Try SHOW DISPLAY/SYMBOLS.  It will
crate symbols for DECW$DISPLAY_NODE,
                  DECW$DISPLAY_SCREEN,
                  DECW$DISPLAY_SERVER    and
                  DECW$DISPLAY_TRANSPORT.
-- Frank
******************************************************************************
Frank Monroe, Jr.                      | Voice     (301)231-3062
DEC Systems Support, Vitro Corporation | FAX       (301)231-2277
Silver Spring, MD 20906-2972           | InterNet  VAXS06@V7.VITRO.COM
From: leichter@lrw.com (Jerry Leichter)
Newsgroups: comp.os.vms
Subject: re: How to make a disk unbootable?
Date: 13 Apr 92 12:20:32 GMT
Distribution: world
Organization: The Internet


	 Hardware : Microvax II with two disk controllers so I have 
	            DUA0,DUA1,DUA2,DUA3 and
	            DUB0,DUB1,DUB2,DUB3,DUB4,DUB5

	 Problem  : Had VMS 5.3 running on DUA3. Built VMS 5.5 on DUB5. Now
	            when I do a "b" to boot I always boot from DUA3. I want to
	            keep DUA3 around for a while so I can't take it offline.

	 Question : How do I make DUA3 "unbootable"? I spent all morning with 
	            TFM and could only find out how to make it bootable.


The MicroVAX II "sniffer boot" will try to run a file named SYSBOOT.EXE, which
it will look for in one of two directories:  [SYSEXE] and [SYS0.SYSEXE].  (You
can, of course, specify an alternate root, in which case it will look in some
other [SYSx.SYSEXE], but you are presumably interested only in the default
case.)  If there's no SYSBOOT.EXE file in either directory, the sniffer will
continue searching for a bootable disk.
							-- Jerry
From: kmoch@whscdp.whs.edu
Newsgroups: comp.os.vms
Subject: FLIGHT available via mail?
Date: 9 Apr 92 05:35:29 GMT
Article-I.D.: whscdp.1992Apr8.233529.382
Organization: Washington HS, Milwaukee, WI

Is FLIGHT available via mail?  I don't have access to FTP.

-- 
Joe Kmoch                             Washington High School
kmoch@whscdp.whs.edu                  Computer Specialty
(414)449-2765                         2525 N. Sherman Blvd
(414)444-9760 x5488                   Milwaukee, WI  53210
From: resistor@edsi.plexus.COM (Jason Hanson)
Newsgroups: comp.os.vms
Subject: modem and terminals
Date: 5 Apr 92 19:23:03 GMT
Article-I.D.: edsi.1992Apr05.192303.29157
Organization: Enterprise Data Systems Incorporated, Appleton WI


I am attempting to hook up an AT&T 2400 baud modem to our MicroVax 3100.
When a call comes in, the modem refuses to take the phone off hook and
the receive/send lights both light.  If the serial line from the Vax is
unplugged the modem answers fine.  Note that the system works fine witha
Hayes 1200 baud modem.  Also, with the AT&T, the show terminal command
on VMS shows the port as locked at 2400 with <login> as owner.  Any
ideas?

-- 
Jason Hanson      ___/\  /\  /\  /\___   Mr. Resistor
Local 145.15 -         \/  \/  \/        resistor@edsi.plexus.COM
Ham Radio: N9LEA  Menasha, Wisconsin USA ..spool!cserver!edsi!resistor
From: MAHAN@GRUBNIK.TGV.COM
Newsgroups: comp.os.vms
Subject: Re: Need Help installing Xterm012
Date: 10 Apr 92 18:34:32 GMT
Distribution: world
Organization: The Internet

In article <1992Apr9.214533.1@woods.ulowell.edu> you write:
#   Several days ago I posted a question about opening a Tek 4010/4014 windows 
#under DECwindows and respondents directed me to xterm at arizona.edu. I 
#downloaded and compiled the backup save_set without problems but when I run the
#executable, it gives the following error
#
#	X Toolkit Error: Can't Open display
#	%DWT-F-DWTABORT, xtoolkit fatal error
#

This indicates that you are unable to connect to the server.  Please verify
that 
	1) Show Display indicates a valid display

	2) That you have security properly setup in the
	   Session Manager

	3) That you can run other programs from that same
	   place (eg, DECW$EXAMPLES:ICO.EXE).

#
#  The system manager here indicated that it might be error in the application, 
#whereas I suspect that I did not install the program properly, since I am not 
#familiar with installing DECwindow programs. Is there something more to 
#DECwindows applications than just compiling and linking with the proper 
#libraries?  How would you make the name appear in the Applications menu in the 
#Session Manager? Again, thanks in advance!
#

How is it added to the Applications menu.  How did you define it?

The name can be what ever you want it to be.

--
Patrick L. Mahan

--- TGV Window Washer ------------------------------- Mahan@TGV.COM ---------

Waking a person unnecessarily should not be considered  - Lazarus Long
a capital crime.  For a first offense, that is            From the Notebooks of
							  Lazarus Long
From: gezelter@rlgsc.com
Newsgroups: comp.os.vms
Subject: Re: How to add new vax into family?
Date: 16 Apr 92 16:47:04 EST
Distribution: na
Organization: Robert Gezelter Software Consultant, Flushing, NY

In article <12194@ns-mx.uiowa.edu>, jhfreeman@adus.ecn.uiowa.edu (James H Freeman) writes:
> The Geology Department here at Cornell College will be getting a MV3100 
> this summer.  It will be running specialized x-ray software under VMS.
> The problem is it will be located in a building that does not have 
> ethernet access.  Until the campus wide ethernet is installed, how can I
> connect the lone vax to my vaxcluster?
> 
> I would like to be able to do remote logins, file copying, mail & 
> maybe nntp news.
> 
> What we have now: serial lines to other building for terminals.
> Vax Cluster with VS3100 & MV3300, 2 DS200MC's and 1 XYPLEX MAXSERVER 
> 1500 (LAT &TCP), router to internet, all on thinnet.
> 
> What we are getting: MV3100 w/ethernet & 8 port decserver 90L.
> 
> Can I set up a decnet link over a serial line to let me do decnet logins & 
> also run UCX over this link(ftp & mail using MX?)?
> 
 
Assuming that your VAXcluster and your MV3100 are properly configured with a 
Routing DECnet license, you should be able to run Asynchronous 
DECnet between the two systems at a speed no less than 9.6K bits 
per second. You will need to connect the line directly (without 
terminal servers) between the two VAXen.
 
Second, you will need to excercise some caution with your network 
usage. When you are used to 10Mbps on an Ethernet, 9.6Kb can seem 
kind of slow. Some of the EXECUTOR parameters on all systems 
involved will also need modification to take into account the 
lower performance of the serial link.
 
However, Asynchronous DECnet works quite well.
 
-- 

+--------------------------------------------------------------------------+
| Robert "Bob" Gezelter                       E-Mail:  gezelter@rlgsc.com  |
| Robert Gezelter Software Consultant         Voice:   +1 718 463 1079     |
| 35-20 167th Street, Suite 215               Fax:       (on Request)      |
| Flushing, New York  11358-1731                                           |
| United States of America                                                 |
+--------------------------------------------------------------------------+
From: rice@ttd.teradyne.com
Newsgroups: comp.os.vms
Subject: Re: Spell checker wanted
Date: 15 Apr 92 18:40:23 GMT
Article-I.D.: ttd.1992Apr15.134142.1
Organization: Teradyne Inc., Telecommunications Division

In article <1992Apr13.092932.19085@windy.dsir.govt.nz>, srlngmw@windy.dsir.govt.nz writes:
> I would like some help in choosing a spelling checker for use with
> TPU. The DECUS software catalog of 1991-1992 contains the following
> entries for spelling checkers (the item numbers are my own):
> -------

   While I can't comment on the relative merits of the various individual
spell checkers listed, any of those that are already included in "extended"
eve packages, could be "extractd" and ported to your customized EVE. I did
that with an in-house spell checker that someone had written. 
   By picking one that had already been integrated into another "extended EVE"
you would pick an example showing how to do it (it's really not complex at
all). Somewhere around here I have a file explaining how it's done, which I
could send you if you want it.

-- 
   John Rice         K9IJ    |  "Did I say that ?" I must have, but It was
   rice@ttd.teradyne.com     |   MY opinion only, no one else's...Especially
   (708)-940-9000 - (work)   |   Not my Employer's....
   (708)-438-7011 - (home)   |   Purveyor of Miracles,Magic and Slight-of-hand
From: hansher@bclcl1.im.battelle.org (Kevin Hansher, Battelle Computing Center)
Newsgroups: comp.os.vms
Subject: Re: Diskeeper V5.0 - Control Master file corruption
Date: 16 Apr 92 13:03:51 GMT
Organization: Battelle, Columbus, OH

In article <mltj7w#.shepperd@netcom.com>, shepperd@netcom.com (David Shepperd) writes:
> From article <1992Apr9.204858.2614@spcvxb.spc.edu>, by terry@spcvxb.spc.edu (Terry Kennedy, Operations Mgr.):
>> In article <01GIMZWJZMDE00005N@VAXF.COLORADO.EDU>, DWING@UH01.Colorado.EDU (Dan Wing) writes:
>>>
>>> [discussion of problems with Control_Master deleted]
>> 
>>   Yes. I went back to the previous version of Diskeeper.
> 
> Me too. Although I hadn't noticed the specific problem mentioned, I had
> numerous other problems that were more than just irritating. Perhaps I didn't
> use it long enough for this error to pop up. I personally HATE the
> Control_Master design. I find the "batch mode" control many times more
> maintainable than using CM to do anything.
> 
>>   As soon as DEC fixes the two bugs in their version and implements some-
>> think like DKVIEW (their current version doesn't seem to display much use-
>> ful data according to the manual), we'll switch over from Diskeeper.
> 
> I want to do that too, but from the description of DEC's version that I've
> seen, it looks like they have designed something similar to Control_Master to
> run it. If this it really true, then maybe I'll have to stick with DK v4 for
> some time.
> 
> -- 
> Dave Shepperd.          shepperd@netcom.COM  or  netcom.netcom.com!shepperd
> What I do and say on my own time is my...what a second, I don't have any of my
> own time. Oh well, never mind...If you believe what I say, its your own damn
> fault ;-)

Do you not plan on upgrading to VMS 5.5 anytime in the near future?  It
is our understanding that we had to install the "new" Diskeeper and did
so to support VMS A5.5.  Yes we are a large production shop and had concerns
in going to the new queue manager until some addtional patches were available.

Anyway we have installed the new version and encountering numerous problems
with Control Master as you mentioned.  Try re-entering 80+ disks information
everytime the file gets corrupted (which currently appears to be at least
everytime the node running this is rebooted - at a minimum!).

We are not to thrilled with the current support being given to this either.
One of the comments made was "If you didn't have so many disks then it
wouldn't be a problem".  Right!  My personal feeling is that if they would
be as concerned with fixing their own problems instead of bashing DEC's
DFO, then everyone would be happy!

-- 
------------------------------------------------------------------------------
Kevin Hansher			Symposium Session Quality Coordinator -
Battelle		        U.S. DECUS VAX Systems SIG
505 King Avenue	                Internet:	hansher@bclcl1.im.battelle.org
Columbus,  OH  43201		Voice: 614-424-4008  Fax:  614-424-5263
From: bob@teda.Teradyne.COM (Bob Armstrong)
Newsgroups: comp.os.vms
Subject: VMS SODRIVER (Sound Driver)
Keywords: SODRIVER sound VMS
Date: 8 Apr 92 23:49:14 GMT
Article-I.D.: teda.42691
Reply-To: Poster


  Does this driver support anything other than just data bytes ?  Are
there QIOs to set the volume ?  Select internal/external speaker ?
Change the sample rate or encoding (I wish!) ?

  BTW, I never did find out how to get the internal speaker to work on
the 4000 model 60, although I did hear from two other people who had the
same problem I do.

Thanks,
Bob Armstrong
bob@teda.eda.teradyne.com
Newsgroups: comp.os.vms
From: sysbrc@fafner.albany.edu (Brian Cuttler)
Subject: Re: UCX V1.3 problems for incoming FTPs.
Keywords: telnet line mode problem
Organization: State University of New York at Albany
Date: Fri, 10 Apr 92 14:25:01 GMT

In article <1992Apr9.210637.25661@ra.msstate.edu> gowen@walt.CS.MsState.Edu (Lon Gowen) writes:
>I am having trouble with incoming FTP connections.  As you might guess,
>I am using UCX (DEC TCP/IP Services software) V1.3.  Both Telnet and FTP
>work correctly, however incoming FTP connections fail unless the VMS
>account has SYSPRV as a default privilege - not good!  This may be a FAQ
>and maybe I am in the wrong news group.  Any help as to "proper" news
>groups, etc. would be great!  Oh yes, the machine is a VAXstation 4000/60.
>
>Lon Gowen, PhD
>gowen@cs.msstate.edu

Perhaps unrelated to the previous...

The image ucx$access_share should be located in both sys$common and
sys$specific, ucx$startup.com will handle that for you, but if you
have applied any of the vms patches (cscpat_0903) you may need to
make sure that the new image is copied to sys$specific (check manually).

Also, we have found that the subnegotiation is failing if the remote
system is trying to connect to the vax in line-mode (vs character 
mode).  This has only been a problem for us using v1.7 of the patch
(cscpat_0903017.a) - also we suspect that version also to have a
problem with re-using "telnet" ports, "rlogin" ports seem to work
just fine.  Of the 11-images in the patch only the "tndriver" seems
to be bad, we are running the new patch with the old tndriver.

The driver is not unloadable and requires a reboot to replace.

These statements are mine, not necessarily my site's nor DEC's. 
Your mileage may vary.

                                             Brian Cuttler
Newsgroups: comp.os.vms
From: bhuttam@woods.ulowell.edu (Bilal A. Bhutta  aka The Nukeman)
Subject: Looking for DECwindow goodies and toys
Organization: Nuclear Eng. Dept, UMass-Lowell
Date: Thu, 16 Apr 1992 22:00:34 GMT

Hi There,
   Thanks to all who responded to my cries for help in installing Xterm :^) I 
finally got it to work. Now that I am comfortable with installing in DECwindows
where can I find similar goodies and DECwindows toys. I think this might be a 
FAQ but I couldn't find any FAQ files. Thanks in advance again. :^)

Bilal A. Bhutta
-- 
 Nuclear Engineering Dept.   
 Univ. of Mass at Lowell     
 bhuttam@willow.ulowell.edu 
 mbhutta@cs.ulowell.edu