HDTenEightyP/NetNews huggingface dataset:
Newsgroups: comp.os.vms
Subject: Re: VMS 5.5 MoveFile primitive
From: don@zl2tnm.gen.nz (Don Stokes)
Date: 4 Jan 93 14:42:49 GMT
Distribution: world
Organization: The Wolery

anos@elmrd6.ineab.ikea.se writes:
> 		$qiow_s chan = indexf,-			; Volume channel
> 			func = movfunc,-		; MOVEFILE function
> 			p1 = fibdsc2			; Our FIB pointer
> 		blbs	r0,30$
> 		$exit_s	r0
> 30$:		
> 		ret
> 
> The code fragment above never exits with errors as I said. If anybody out
> there has any info on additional status fields, please send me a e-mail.

Well, to put it bluntly, you've made a fairly fundamental cock-up.

$QIO and $QIOW (and other things that operate asynchronously) have an
IOSB parameter.  It's optional, but ignore that.  Consider it mandatory.

There are two reasons for this:  The big one is that the status code
returned is the status for _queueing the I/O_ (or $GETJPI or ...), not 
for the whole job.  Sure, the I/O was queued, but did it _work_?
To find out, you need to check the low-order word of the IOSB.

The second reason is very important for the 'W' forms of async calls
($QIOW, $GETJPIW & friends): the IOSB is checked for completion.  A 
$QIOW is actually implemented as $QIO/$SYNCH, but only if you specify an
IOSB (since $SYNCH takes asn IOSB as its parameter).  If you don't, the
only indication that the service has completed is the event flag -- since
you've not specified the efn parameter, it's using efn 0.  If anything
else sets efn 0 (async QIOs etc), your $QIOW call will terminate
prematurely.

So, to do your QIO properly, change your code to:

(somewhere else)
iosb:		.blkw 4					; IOSB for QIOs

> 		$qiow_s chan = indexf,-			; Volume channel
> 			func = movfunc,-		; MOVEFILE function
			iosb = iosb,-
> 			p1 = fibdsc2			; Our FIB pointer
> 		blbs	r0,30$
> 35$:		$exit_s	r0
> 30$:		
		cvtwl iosb, R0				; Status from I/O
		blbc R0, 35$				; OK?
> 		ret

Check out the I/O users guide for more infoi on IOSBs.

--
Don Stokes, ZL2TNM (DS555)                        don@zl2tnm.gen.nz (home)
Network Manager, Computing Services Centre            don@vuw.ac.nz (work)
Victoria University of Wellington, New Zealand              +64-4-495-5052
Newsgroups: comp.os.vms
From: zinckt@wl.aecl.ca
Subject: WANTED: lex and yacc for VAX/VMS.
Organization: AECL RESEARCH
Date: Thu, 7 Jan 1993 20:46:23 GMT

Hello Netters,

I am looking for a site which contains numerous GNU/UNIX commands such as Gawk,
Lex, YACC and such for use on a VAX/VMS workstation..

Please e-mail responses.

Thanx.

Tom

----------------
zinckt@wl.aecl.ca
Newsgroups: comp.os.vms,comp.lang.ada
From: dlc@ddsdx2.jhuapl.edu (Dave Collard x7468)
Subject: Re: VAX/VMS ACLs
Organization: Johns Hopkins University
Distribution: usa
Date: Mon, 4 Jan 93 15:36:39 GMT

In <1993Jan4.042315.31541@iitmax.iit.edu> LEDUC@MINNA.IIT.EDU (USERS) writes:

>I have the following program I am tring to set the
>ACL on a file using system services. 

>with Condition_Handling;
>with Lib;
>with starlet;
>with system;
>procedure test is
>   status : Condition_handling.Cond_Value_Type;
>   ACL_List : Starlet.Item_List_Type (1..1);
>   ACE_Entry: String (1..128);
>   len : system.unsigned_word := 4;
>begin
>   Lib.Create_dir ( status => status,
>		    device_directory_spec => "[STUDENT.USERS.Z275.HELLO]" );
>   Starlet.Parse_ACL ( status => status,
>		       aclstr => "(identifier=[users,leduc],access=" &
>				"read+write+execute+delete+control)",
>		       aclent => ACE_Entry );
>   ACL_List (1) := Starlet.Item_Rec_Type' (
>		Buf_Len => len,

*** this is your problem.  the buf_len must be the length of the acl entry.  this is
    in the first byte of the aclent.  so convert ace_entry(1) to an unsigned word and
    use that value for buf_len. otherwise you will get a invalid access entry format error 

>		Item_Code => Starlet.ACL_C_ADDACLENT,
>		Buf_Address => ACE_Entry'address,
>		Ret_Address => System.Address_Zero );

*** your item list should also be terminated by a null item 
    acl_list(2) := (0,0,system.address_zero,system.address_zero);  
    if you don't do this, then will try to use the next area in memory
    as another item, and *hopefully* you will get a bad parameter error.

>   Starlet.Change_ACL ( Status => Status,
>			Objtyp => Starlet.ACL_C_FILE,
>			Objnam => "[STUDENT.USERS.Z275]HELLO.DIR",
>			Itmlst => ACL_List );
>end test;
From: zars10@trc.amoco.com (Andrew R. Slagle)
Subject: MS-Windows VT340 Terminal Emulators
Originator: zars10@orca
Organization: Amoco Production Company, Tulsa Research
Date: Mon, 4 Jan 1993 16:51:28 GMT


I am aware of 2 VT340 emulation programs for MS-Windows which
are available right now.

 KEA Systems, KEAterm 340 for Windows

 Persoft Inc, SmarTerm 340 for Windows

I don't know if Reflections version has been release yet.

Does anyone have experience with these packages yet?
Could you please let me know how well you think your
package works?  We are currently using SmarTerm 340
for DOS and it works great.  

thanks
Andy Slagle
From: bruce@ais.com (Bruce C. Wright)
Newsgroups: comp.os.vms
Subject: Re: How to mount ISO and HSG CD-ROM's on (Open)VMS?
Date: 11 Jan 93 12:33:06 GMT
Organization: Applied Information Systems, Chapel Hill, NC

In article <11JAN199309032147@author.gsfc.nasa.gov>, rkoehler@author.gsfc.nasa.gov (Bob Koehler) writes:
> In article <7BO0SNI@netmbx.netmbx.de>, weis@netmbx.netmbx.de (Dietmar Weis) writes...
>>In Ultrix you have to specify a kernel option and a pseudo-device
>>in order to mount those CD's. But how can I do it on VAX/VMS and
>>AXP/OpenVMS?
>>MOUNT/FOREIGN of course does not work.
> 
> Prior to VMS 6.0, the ACP for mounting these CDs ships only in the Infoserver
> kit, if you have the Infoserver kit look for something like F11CD.  The mount
> command will probably require the /PROCESSOR=filespec qualifier to choose the
> correct ACP.  6.0 is supposed to ship with the ACP "in there", i.e. you won't
> need the Infoserver kit.

This is true, however the Infoserver kit is included in the CONDIST
CD-ROM set.  There is also a modified version of MOUNT, which is
installed on the system as CD_MOUNT, which uses the qualifier /MEDIA=CD
to mount an ISO 9660 disk;  there is also a qualifier /UNDEFINED which
determines the treatment of files which don't have any format definitions
on the CD-ROM.  This qualifier is useful for reading the UNIX-style
STREAM-LF type files or the MS-DOS STREAM-CRLF type files reasonably
transparently under VMS.  (Aggravated aside:  Why can't the world agree
on what a STREAM-type file looks like, at least when it's on a CD-ROM,
so that this kind of hack wouldn't be necessary?)

The best part is that you don't need any additional license PAK's to
be able to use the ISO 9660 ACP;  there's just a little saveset that
you can restore in the Infoserver kit that gives you the additional
ACP and DCL syntax (There's also a new version of DUMP that understands
something about the on-disk structure of the ISO-9660 format).  All the
other commands work like you'd expect on any other disk -- COPY, TYPE,
etc.  It looks very much like a read-only ODS-2 disk.

If you have a CD-ROM reader, the CONDIST is an excellent investment --
current distributions of almost all the common layered products, and
online documentation as well (well, yeah, it's in Bookreader format,
but if you have even one Xterminal it can be useful to be able to find
things on it that have been `borrowed' from the regular doc set or that
are for a product that you don't have but need information about).

Bruce C. Wright
From: anos@trixie.ineab.ikea.se (Anders Ostling)
Newsgroups: comp.os.vms
Subject: KMV11 support
Date: 7 Jan 93 22:03:08 GMT
Organization: IKEA Northern Europe AB

Hi there

Heard someone say that KMV11 cards will NOT be supported after VMS 5.5.
Does anybody have more information? I have tried to find any hints or
real info in the Release Notes, but failed to find any references to 
this specific card.

*IF* its correct, why will it be unsupported ? Is there any remote 
possibilty to use the card with a modified or homebrewn driver ???

Anders

BTW, I would like to take this opportunity to thank you people of the
net. During the last 3 months I have got many peices of valuable info
from YOU. Problems that neither I or Digital could solve or answer was
solved, often within hours or the next day. This is EXACTLY what
"The Meaning of the Net" is. Once again, thanks !

-- 
Anders Ostling <Vax/Un*x Systems Manager>, IKEA Northern Europe AB, Sweden
Voice <+46 42 25 73 08> Internet <anos@ineab.ikea.se>
Newsgroups: comp.os.vms
From: FZC@CU.NIH.GOV ("Paul Robinson, Contractor")
Newsgroups: comp.os.vms
Subject: Trademarks
Date: 10 Jan 93 02:28:13 GMT
Distribution: world
Organization: The Internet

> |>Donald Trump is in a mess of trouble because he named his casino
> |>"The Taj Mahal" after knowing that a guy who owns a restaurant
> |>in Washington, DC, had already registered the identical mark for
> |>his restaurant with the Patent and Trademark office.  Now this
> |>restaurant owner is suing Trump over servicemark infringement.
>
> Only since the Taj Mahal is a very common name for Indian Restaurants,
> Trump probably has had no difficulty in showing prior use.

The indian restaurant in Washington was using the name
"The Taj Mahal" and had registered the name, BOTH BEFORE
Trump opened his casino.  The Patent and Trademark Office
originally refused to accept a registration under the name
"Taj Mahal" BECAUSE there was a prior registration and
use BEFORE they filed.
---
Paul Robinson -- TDARCOS@MCIMAIL.COM
These opinions are mine alone
From: ARTG@LAGUNA.EPCC.EDU (Art Gonzalez)
Newsgroups: comp.os.vms
Subject: LASTLOGINS program
Date: 6 Jan 93 22:39:21 GMT
Distribution: world
Organization: The Internet

Several months ago, I received a copy of a program called LASTLOGINS.
I don't remember the name of the individual that sent it to me.  
If you know who the author is, can you send me his address so that
I can contact him.

Thanks in advance.

<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
<>  Art Gonzalez               >< Phone #  : (915) 775-6141       <>
<>  Manager, Information Tech. >< BITNET   : ARTG@EPCC            <>
<>  432 Frederick              >< INTERNET : ARTG@LAGUNA.EPCC.EDU <>
<>  El Paso, Texas  79905      >< THENET   : EPCC::ARTG           <>
<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
<> Disclaimer: What I have said is my opinion and doesn't reflect <>
<>             the opinion of my employer or co-workers           <>
<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
From: ILINE@COLLOQUIUM.CO.UK
Newsgroups: comp.os.vms
Subject: RE: Help on RT-11 macro language
Date: 5 Jan 93 16:40:00 GMT
Distribution: world
Organization: The Internet

I used to be pretty reasonable at Macro-11/RT-11, so (from memory) here 
goes...

> I'm a bit confused by the unconditional branch instruction -
> where does this code end up after the 'BR 10$+2' step?
> 
> DR3INT: 0
> 	BR	10$+2		<--- branch to where ?
> 	BR	20$+2
> 10$:	MOV	#107,DMACSR
> 	TST	ADCO		<--- here ?
> 	BEQ	11$
> 	MOV	#113,KWREG
> 11$:	MOV	DR3INT+4,DR3INT
> 	TR			<--- or here ?
> 12$:    et cetera ad nauseum

This code is not confidence inspiring. Firstly, use of '10$+2' is clumsy - 
unless there's a reason I'm missing; Secondly, it's using the 'wrong' 
addressing mode to access the CSR (DMACSR); Thirdly - unless I'm missing 
something - it won't work. Here's why:-

10$:	mov #107,dmacsr

expands to the following 16-bit words in octal:

10$:	012767
10$+2:	000107
10$+4:	an offset to dmacsr
	.
	.
	.


'br	10$+2' branches to the word 000107 - without my PDP-11 handbook, I 
can't figure out what that will do, but quite possibly not what you want. 
However, it is possible the programmer has done something subtle & kludgey 
here.

> My intuitive guess is that it ends up at 'TST ADCO',
> but the manual seems to be telling me it branches to
> the indicated address.

I reckon it branches into the middle of the instruction at 10$

> While you're here, does the 'MOV' instruction at 11$ really move
> the label 'DR3INT' to the same address as 10$? Why is the 
> 'BR 20$+2' there then?

This code is 'self-modifying' - another black mark. What this instruction 
does is to move the word 'BR 20$+2' to DR3INT. However, because the BR 
instruction is a relative branch, it effectively becomes 'BR 20$-2' in the 
process. Incidentally, the '0' at DR3INT (don't you need .word ?) would 
halt the machine if executed. This doesn't make much sense to me... Unless 
an earlier instruction moves the 'BR 10$+2' to DR3INT, making it 'BR 10$' 
in the process, because the branch is relative. This seems inkeeping with 
the style of the rest of the code.

> What does 'TR' do? I can't find it in the instruction set
> or the macro language reference manual.

Pass. Probably a macro.

> Thanks for the help.

Good luck.
> __________________________________________________________
> Bill Morrow                    voice: (403) 220-6275
> Clinical Neurosciences         fax: (403) 283-4740
> University of Calgary          e-mail: morrow@cns.ucalgary.ca

Mark Iline, Mech Eng UCL UK
iline@colloquium.co.uk or system@meng.ucl.ac.uk
From: harvey@indyvax.iupui.edu
Newsgroups: comp.os.vms
Subject: re: Re: Running LOGINOUT [SYS$CLI]
Date: 8 Jan 93 19:56:54 -0500
Organization: Indiana University-Purdue University at Indianapolis

In article <1993Jan7.182111.1081@dbased.nuo.dec.com>, lionel@quark.enet.dec.com (Steve Lionel) writes:
>
> Regarding the issue of whether or not it is "supported" to run LOGINOUT.EXE
> to start a process with a CLI, I have a meeting with the writer of the
> VMS System Services Reference Manual later this afternoon to go over just what
> needs to be added to the $CREPRC description to make it clear that this IS
> supported.  I note that the $CREPRC description already has a lot more mention
> of LOGINOUT than does the DCL manual (I hadn't found it because it wasn't
> listed in the master index under LOGINOUT), in particular it says:
>
> 	"... This is so because SYS$SYSTEM:LOGINOUT.EXE causes a
> 	command interpreter to be mapped into the created process..."
> 		("Description" section of $CREPRC documentation)
>
> What's missing is a blunt statement that "If you wish the created process to
> be running a CLI, specify SYS$SYSTEM:LOGINOUT.EXE as the image name."  There
> also needs to be some text as to what CLI gets used.  I'll make sure that
> what needs to be said is said.  (Or, as Capt. Picard might say, "Make it so.")

Weeee!  $CREPRC documentation changes!  I have three questions concerning this:

1.      If one doesn't use the prompting feature (by setting PRC$M_NOPASSWORD
        in the stsflg argument), is there any way to use $CREPRC to create a
        process running some other CLI besides DCL?

2.      If the answer to question 1 is Yes, will this method be documented
        and supported?

3.      The latest System Services Reference manual I have (the BookReader
        documentation from the November 1991 CDROM distribution for VMS 5.5)
        stills gives a list of stsflg flags (including PRC$M_NOPASSWORD BTW)
        that it says "... are intended for use by DIGITAL software.  Complete
        documentation of the possible ramifications of their use is not
        provided."  Is this going to change?  Obviously the answer to this
        may affect the answer to my first two questions.

Just wondering, 'cuz it's always nice to know about new features, even if
they're really old ones!

>[stuff deleted]
--
James Harvey    IUPUI OIT Technical Support/Networks
harvey@iupui.edu  harvey@indiana.edu  uucp:iugate!harvey  bitnet:harvey@indyvax
From: DWING@UH01.Colorado.EDU (Dan Wing)
Newsgroups: comp.os.vms
Subject: Re: help on SET WATCH?
Date: 12 Jan 93 16:14:35 GMT
Distribution: world
Organization: The Internet

Chris Melaro, cmelaro@loyola.edu, writes:

>Can anyone help me with the undocumented SET WATCH command?  I've used it in
>the past but can't seem to remember all the paramaters now.

Here you are.

-Dan Wing, dwing@uh01.colorado.edu or wing_d@ucolmcc.bitnet (DGW11)
 Systems Administrator, University Hospital, Denver

                                SET WATCH

The following *undocumented* (and unsupported) DCL command allows you to 
monitor the VMS file system opening, closing, reading, and writing to files.  
This may be useful when running programs to determine the filenames opened 
and read/write counts to these files.

Because this is an undocumented command, it should not be included in any
production programs or .COM files.  


  $ SET WATCH FILE/CLASS=(option[,...])

     where "option" is one or more of the following options.  If you 
     specify more than one option, enclose the options in paraenthesis
     and separate the options with commas.

        NONE                    Disable all watching
        QUOTA_OPERATIONS        Disk quota changes
        MAJOR_FUNCTION          Opens, closes, reads, writes
        ATTACHED                <??>
        DUMP                    FIB (File Information Block) dump
        DIRECTORY_OPERATIONS    All functions on directories
        CONTROL_FUNCTION        Protection changes
        ATTRIBUTES              Changes to file attributes
        ALL                     All options listed above
        

Useful information may be obtained by using the option MAJOR_FUNCTION and
DIRECTORY_OPERATIONS.  Most of the other options display a lot of information 
which may not be helpful for most tasks.

This command requires CMEXEC privilege.  

Jerry Leichter <leichter%LRW.COM@uga.cc.uga.edu> mentioned (in INFO-VAX) 
that SET WATCH has the potential to crash your system.
From: simons/G=Colin/I=CB/S=Sewell/O=H.A.Simons.Ltd/OU=CORP@mhs.attmail.com
Newsgroups: comp.os.vms
Subject: Re: Creating subprocess with $CREPRC; preservation of symbols/logicals
Date: 8 Jan 93 15:54:11 GMT
Distribution: world
Organization: The Internet

Bob Koehler writes:
|In article <C0I3xM.84F@acsu.buffalo.edu>, masmummy@ubvmsb.cc.buffalo.edu writes...
|>I have a program that needs the use of $CREPRC to create a subprocess.
|>I think LIB$SPAWN is great, but I cannot alter quotas with it.
|> 
|>My problem lies in preserving symbols and/or logicals.
|>Is there any way (with normal privileges) that I can pass information to
|>this subprocess (I need to give it a stream about 80 characters long), without
|>resorting to files, mailboxes, and such?  It appears to me (I am not an expert)
|>that LIB$SPAWN copies the symbol and logical tables over by default.  Can I
|>do that with $CREPRC, too?
|> 
|>Thanks,
|>Bill
|
|Basically, no.  You can put the logical names in a shared table, accessable by
|both processes, but there's no built-in way to pass the contents of the process
|logical name table or the CLI symbol table without using LIB$SPAWN.  IMHO, I
|would most likely resort to a mailbox if faced with this problem.
|

    if point of fact, that's exactly what LIB$SPAWN does to transfer symbols
    and process logical names to the spawned process. it transfers them all
    via mailbox.

    colin sewell
    h.a.simons ltd.
    vancouver, bc
    "simons/g=colin/s=sewell"@mhs.attmail.com
From: carl@SOL1.GPS.CALTECH.EDU (Carl J Lydick)
Newsgroups: comp.os.vms
Subject: Re: Determining if process is runaway ?
Date: 9 Jan 1993 13:26:20 GMT
Organization: HST Wide Field/Planetary Camera
Distribution: world
Reply-To: carl@SOL1.GPS.CALTECH.EDU
NNTP-Posting-Host: sol1.gps.caltech.edu

In article <1993Jan5.195143.7160@samba.oit.unc.edu>, Walt.Armour@launchpad.unc.edu (Walt Armour) writes:
>   I am currently working on a sentry-type program to monitor processes
>on our systems.  It monitors processes for idle logout and for runaway
>CPU time.  The problem I have is determining whether a process is runaway
>or not.  The method I was going to use would compare the ratio of CPU time
>to connect time.  This works but is not the best.  If a user consumes enough
>CPU to prevent becoming idle it could stay logged in for several days then
>begin running away.  In that case my sentry could take several days to 
>classify a process as runaway.
>
>  Are there better (and quicker) methods that determine if a process is runaway
>withing 5-10 minutes?

No.  You're asking essentially, "Is there a solution for the `stopping
problem'?"  There is no such solution.  How could you possibly hope to tell the
difference between a "runaway process" and a CPU-intensive process that is
doing what it's supposed to do?
--------------------------------------------------------------------------------
Carl J Lydick | INTERnet: CARL@SOL1.GPS.CALTECH.EDU | NSI/HEPnet: SOL1::CARL

Disclaimer:  Hey, I understand VAXen and VMS.  That's what I get paid for.  My
understanding of astronomy is purely at the amateur level (or below).  So
unless what I'm saying is directly related to VAX/VMS, don't hold me or my
organization responsible for it.  If it IS related to VAX/VMS, you can try to
hold me responsible for it, but my organization had nothing to do with it.
From: 92636828s@csghsg5a.bitnet
Newsgroups: comp.os.vms
Subject: local printing out of detached process
Date: 5 Jan 93 10:30:14 GMT
Organization: University of St.Gallen, Switzerland

I'm trying to create a detached subprocess or process, which has to be
attached to the terminal, because I want to run it a batch-file with
the following content: $mc prt type *.txt
Spawn/nowait anything.com doesn't help for although the subprocess runs
asynchronous the "motherprocess" is stopped till completion of the subprocess.
Is there a possibility to do it via run/detach ?
Any kind of help will be appreciated.  
-- 
\_\_                 \_\_       ** The world's biggest Rush fan **
  \_\_                 \_\_
    \_\_                 \_\_           David-Michael Lincke
      \_\_                 \_\_      Hochschule St. Gallen HSG
        \_\_                 \_\_
          \_\_\_\_\_\_\_\_\_   \_\_  email: 92636828@csghsg5a.bitnet
					    92636828@alpha.unisg.ch
From: MEEHAN@castle.printech.ie ("Eoin Meehan, Printech International")
Newsgroups: comp.os.vms
Subject: INFO: SYSGEN bugcheck, 4100, DPV-11
Date: 11 Jan 93 18:03:00 GMT
Distribution: world
Organization: The Internet

Date sent:  11-JAN-1993 17:46:52

Ok, this might be of use to someone and I hope I've got my facts right or
I'll disappear in crackling blue flames of at least 10 megaehuds in power.

One of our customers just bought VMS/SNA and two DPV-11s for his VAX 4100.
On loading up VMS/SNA we get a bugcheck when we try and turn the SNA line on
(in SNANCP). The bugcheck is ASYNCHRONOUS MEMORY WRITE ERROR and the image
running is LES$ACP. The version of VMS is V5.5-2HW.

We also get the same bugcheck when he tries to run a third-party package which
has its own DPV-11 driver (thats why there's two, see?), only the image running
is the third-party package DPV-11 driver. Theres not a conflict because we can
reproduce the bugcheck running either package up without the other.

We get on to our friendly Digital Customer Services person who connects us with
the SNA group in the UK. Seems like theres a known problem with SYSGEN loading
third-party drivers, on a 4100. Now, the third-party package driver is
understandable but a DPV-11 with UHDRIVER is not what I'd call a "third-party
item" but what the hell...

Any way, we got the patch along with a new version of VMS/SNA, I think 2.1-3
(definitely called SKIT03 anyway). The patch is CSCPAT1024 and they fixed the
problem - both packages worked perfectly.

Thanks to Digital for getting us the kits overnight, and giving me a worry-free
weekend!

Regards,
Eoin
-------------------------------
Eoin Meehan
Systems and Networks Consultant
Trinity Group
172 Merrion Road
Dublin 4
Ireland

Mail stop:  meehan@castle.printech.ie