INFO-VAX Fri, 28 Nov 2008 Volume 2008 : Issue 636 Contents: Black and White Printing Re: Black and White Printing Re: Black and White Printing Re: Black and White Printing Re: Black and White Printing Re: Black and White Printing Re: Black and White Printing Re: Black and White Printing Re: Black and White Printing Re: Black and White Printing Re: Black and White Printing Re: Emulation Re: forwarding email to a distribution list Re: Good example of C and MACRO Re: Good example of C and MACRO Re: Good example of C and MACRO Re: Good example of C and MACRO Re: Good example of C and MACRO Re: Good example of C and MACRO Re: Good example of C and MACRO Re: Good example of C and MACRO Re: Good example of C and MACRO Re: Good example of C and MACRO How to make an FTP through a .com file Re: How to make an FTP through a .com file Re: How to make an FTP through a .com file Re: How to make an FTP through a .com file Re: How to make an FTP through a .com file Re: How to make an FTP through a .com file Re: How to make an FTP through a .com file Re: LAT BARCODE PRINTER MUTEX Re: MUTEX Re: MUTEX Re: MUTEX Re: MUTEX Re: MUTEX Re: MUTEX Re: MUTEX Re: MUTEX Re: MUTEX Re: MUTEX Re: MUTEX Re: MUTEX Re: MUTEX Re: MUTEX Re: MUTEX Re: MUTEX Re: MUTEX Re: MUTEX Re: MUTEX Re: MUTEX Re: MUTEX Re: MUTEX Re: MUTEX Re: MUTEX PPL$ documentation Re: PPL$ documentation Re: PPL$ documentation Re: PPL$ documentation Re: PPL$ documentation Re: PPL$ documentation Re: PPL$ documentation Re: PPL$ documentation Re: PPL$ documentation Re: search list, surprising error, inconsistent behavior Re: search list, surprising error, inconsistent behavior SOA Conference a one-day seminar in chennai on Dec-13,2008 called "ESOA2008" on ---------------------------------------------------------------------- Date: Fri, 28 Nov 2008 05:31:31 -0800 (PST) From: Bfraga Subject: Black and White Printing Message-ID: <8a3c6139-7a84-43ff-8512-2e5e69f4f731@o2g2000yqd.googlegroups.com> Hello, I have several alphaservers running OpenVMS. To print we use the command PRINT/QUEUE filename to send the file to the printer queue and print it. I want to know if there is a way to print only black and white, to reduce the printing cost. Thanks. ------------------------------ Date: Fri, 28 Nov 2008 16:17:15 +0200 From: Mike Rechtman Subject: Re: Black and White Printing Message-ID: Bfraga wrote: > Hello, > > I have several alphaservers running OpenVMS. To print we use the > command PRINT/QUEUE filename to send the file to the printer queue and > print it. > I want to know if there is a way to print only black and white, to > reduce the printing cost. > > Thank Probably easiest to change printer setup. (can be done per-job) If hou can find the escape sequence that switches the printers int b&w only, you could create a module containing those in DEVCTL.TLB, and create a form with that module in /SETUP. Start at $HELP DEF /FORM and continue to "Batch and Print" in SYSMAN documentation. -- Mike R. http://alpha.mike-r.com/ -- ------------------------------ Date: Fri, 28 Nov 2008 09:29:05 -0500 From: "Richard B. Gilbert" Subject: Re: Black and White Printing Message-ID: Bfraga wrote: > Hello, > > I have several alphaservers running OpenVMS. To print we use the > command PRINT/QUEUE filename to send the file to the printer queue and > print it. > I want to know if there is a way to print only black and white, to > reduce the printing cost. > > Thanks. Sure! Just use a black and white printer. This will probably make hash of color images but you can't have everything! Or, if your question is how to send a print job to the black and white printer, see HELP PRINT /QUEUE. ------------------------------ Date: Fri, 28 Nov 2008 07:01:41 -0800 (PST) From: Bfraga Subject: Re: Black and White Printing Message-ID: On 28 nov, 12:29, "Richard B. Gilbert" wrote: > Bfraga wrote: > > Hello, > > > I have several alphaservers running OpenVMS. To print we use the > > command PRINT/QUEUE filename to send the file to the printer queue and > > print it. > > I want to know if there is a way to print only black and white, to > > reduce the printing cost. > > > Thanks. > > Sure! =A0Just use a black and white printer. =A0This will probably make h= ash > of color images but you can't have everything! > > Or, if your question is how to send a print job to the black and white > printer, see HELP PRINT /QUEUE. This was the first thing I thought, but i can't use a black and white print because its a shared printer, and I can't set the printer to print only black and white. I have to find a way to setup the queue to black and white. I've already read the HELP PRINT and I couldn't find anything on how to do this. ------------------------------ Date: Fri, 28 Nov 2008 07:05:28 -0800 (PST) From: Bfraga Subject: Re: Black and White Printing Message-ID: On 28 nov, 12:17, Mike Rechtman wrote: > Bfraga wrote: > > Hello, > > > I have several alphaservers running OpenVMS. To print we use the > > command PRINT/QUEUE filename to send the file to the printer queue and > > print it. > > I want to know if there is a way to print only black and white, to > > reduce the printing cost. > > > Thank > > Probably easiest to change printer setup. (can be done per-job) > If hou can find the escape sequence that switches the printers int b&w > only, you could create a module containing those in DEVCTL.TLB, and > create a form with that module in /SETUP. > Start at $HELP DEF /FORM =A0and continue to "Batch and Print" in SYSMAN > documentation. > > -- > Mike R.http://alpha.mike-r.com/ > > -- I can't set the printer to b&w because it's shared with other systems. There is a command to do this in the queue creation? Or in the print command? ------------------------------ Date: Fri, 28 Nov 2008 10:25:27 -0500 From: "Richard B. Gilbert" Subject: Re: Black and White Printing Message-ID: Bfraga wrote: > On 28 nov, 12:29, "Richard B. Gilbert" wrote: >> Bfraga wrote: >>> Hello, >>> I have several alphaservers running OpenVMS. To print we use the >>> command PRINT/QUEUE filename to send the file to the printer queue and >>> print it. >>> I want to know if there is a way to print only black and white, to >>> reduce the printing cost. >>> Thanks. >> Sure! Just use a black and white printer. This will probably make hash >> of color images but you can't have everything! >> >> Or, if your question is how to send a print job to the black and white >> printer, see HELP PRINT /QUEUE. > > This was the first thing I thought, but i can't use a black and white > print because its a shared printer, and I can't set the printer to > print only black and white. I have to find a way to setup the queue to > black and white. > I've already read the HELP PRINT and I couldn't find anything on how > to do this. Have you tried reading the manual for the printer? Most printers I am familiar with will print text in black unless otherwise instructed. If yours will not, then you need to transmit the proper codes to place it in black and white mode. This may be as simple as sending a "reset" sequence or it may be more complex. RTFM! ------------------------------ Date: Fri, 28 Nov 2008 15:35:38 GMT From: VAXman- @SendSpamHere.ORG Subject: Re: Black and White Printing Message-ID: <00A834CD.849BAA20@SendSpamHere.ORG> In article <8a3c6139-7a84-43ff-8512-2e5e69f4f731@o2g2000yqd.googlegroups.com>, Bfraga writes: >Hello, > >I have several alphaservers running OpenVMS. To print we use the >command PRINT/QUEUE filename to send the file to the printer queue and >print it. >I want to know if there is a way to print only black and white, to >reduce the printing cost. White paper; black ink. -- VAXman- A Bored Certified VMS Kernel Mode Hacker VAXman(at)TMESIS(dot)COM ... pejorative statements of opinion are entitled to constitutional protection no matter how extreme, vituperous, or vigorously expressed they may be. (NJSC) Copr. 2008 Brian Schenkenberger. Publication of _this_ usenet article outside of usenet _must_ include its contents in its entirety including this copyright notice, disclaimer and quotations. ------------------------------ Date: Fri, 28 Nov 2008 17:32:54 +0200 From: Mike Rechtman Subject: Re: Black and White Printing Message-ID: Bfraga wrote: > On 28 nov, 12:17, Mike Rechtman wrote: >> Bfraga wrote: >>> Hello, >>> I have several alphaservers running OpenVMS. To print we use the >>> command PRINT/QUEUE filename to send the file to the printer queue and >>> print it. >>> I want to know if there is a way to print only black and white, to >>> reduce the printing cost. >>> Thank >> Probably easiest to change printer setup. (can be done per-job) >> If hou can find the escape sequence that switches the printers int b&w >> only, you could create a module containing those in DEVCTL.TLB, and >> create a form with that module in /SETUP. >> Start at $HELP DEF /FORM and continue to "Batch and Print" in SYSMAN >> documentation. >> >> -- >> Mike R.http://alpha.mike-r.com/ >> >> -- > > I can't set the printer to b&w because it's shared with other systems. > There is a command to do this in the queue creation? Or in the print > command? As far as I know you cannot set the pint queue to change the contents of the file sent to the printer (unless you get REALLY in there, write your own symbiont etc. good luck there) Defining a print form with a /SETUP module changes the printer attributes at the start of the form (i.e. each page you print) if you want to reset the printer after each job, look at $HELP QUEUE /SEPARATE with the /RESET= option. You really should try opening the System Manager documentation; it's all in there in greater detail. The documentation is also on-line -- Mike R. http://alpha.mike-r.com/ -- ------------------------------ Date: Fri, 28 Nov 2008 15:46:44 GMT From: VAXman- @SendSpamHere.ORG Subject: Re: Black and White Printing Message-ID: <00A834CF.11C31204@SendSpamHere.ORG> In article , Bfraga writes: >On 28 nov, 12:17, Mike Rechtman wrote: >> Bfraga wrote: >> > Hello, >> >> > I have several alphaservers running OpenVMS. To print we use the >> > command PRINT/QUEUE filename to send the file to the printer queue and >> > print it. >> > I want to know if there is a way to print only black and white, to >> > reduce the printing cost. >> >> > Thank >> >> Probably easiest to change printer setup. (can be done per-job) >> If hou can find the escape sequence that switches the printers int b&w >> only, you could create a module containing those in DEVCTL.TLB, and >> create a form with that module in /SETUP. >> Start at $HELP DEF /FORM =A0and continue to "Batch and Print" in SYSMAN >> documentation. >> >> -- >> Mike R.http://alpha.mike-r.com/ >> >> -- > >I can't set the printer to b&w because it's shared with other systems. >There is a command to do this in the queue creation? Or in the print >command? It didn't occur to you to tell us what TYPE (brand, model,etc.) of printer you have associated with the queue in question? If it's postscript, it might be possible to define the set{}color to be a setgray command. Or, there might be control commands that would set the printer to B&W mode for your job. Of course, this is just wasting band- width without some knowledge of the printer. -- VAXman- A Bored Certified VMS Kernel Mode Hacker VAXman(at)TMESIS(dot)COM ... pejorative statements of opinion are entitled to constitutional protection no matter how extreme, vituperous, or vigorously expressed they may be. (NJSC) Copr. 2008 Brian Schenkenberger. Publication of _this_ usenet article outside of usenet _must_ include its contents in its entirety including this copyright notice, disclaimer and quotations. ------------------------------ Date: Fri, 28 Nov 2008 08:10:14 -0800 (PST) From: Bfraga Subject: Re: Black and White Printing Message-ID: On Nov 28, 1:46=A0pm, VAXman- @SendSpamHere.ORG wrote: > In article , Bfraga writes: > > > > > > >On 28 nov, 12:17, Mike Rechtman wrote: > >> Bfraga wrote: > >> > Hello, > > >> > I have several alphaservers running OpenVMS. To print we use the > >> > command PRINT/QUEUE filename to send the file to the printer queue a= nd > >> > print it. > >> > I want to know if there is a way to print only black and white, to > >> > reduce the printing cost. > > >> > Thank > > >> Probably easiest to change printer setup. (can be done per-job) > >> If hou can find the escape sequence that switches the printers int b&w > >> only, you could create a module containing those in DEVCTL.TLB, and > >> create a form with that module in /SETUP. > >> Start at $HELP DEF /FORM =3DA0and continue to "Batch and Print" in SYS= MAN > >> documentation. > > >> -- > >> Mike R.http://alpha.mike-r.com/ > > >> -- > > >I can't set the printer to b&w because it's shared with other systems. > >There is a command to do this in the queue creation? Or in the print > >command? > > It didn't occur to you to tell us what TYPE (brand, model,etc.) of printe= r > you have associated with the queue in question? > > If it's postscript, it might be possible to define the set{}color to be a > setgray command. =A0Or, there might be control commands that would set th= e > printer to B&W mode for your job. =A0Of course, this is just wasting band= - > width without some knowledge of the printer. > > -- > VAXman- A Bored Certified VMS Kernel Mode Hacker =A0 =A0 =A0VAXman(at)TME= SIS(dot)COM > > ... pejorative statements of opinion are entitled to constitutional prote= ction > no matter how extreme, vituperous, or vigorously expressed they may be. (= NJSC) > > Copr. 2008 Brian Schenkenberger. =A0Publication of _this_ usenet article = outside > of usenet _must_ include its contents in its entirety including this copy= right > notice, disclaimer and quotations.- Hide quoted text - > > - Show quoted text - The printer is a HP business inkjet 2280dn, and we use postscript to print the files. Is there a command in postscript to set it to b&w? ------------------------------ Date: 28 Nov 2008 16:26:19 GMT From: "Bob Eager" Subject: Re: Black and White Printing Message-ID: <176uZD2KcidF-pn2-Gjm15giz1JnX@rikki.tavi.co.uk> On Fri, 28 Nov 2008 13:31:31 UTC, Bfraga wrote: > I have several alphaservers running OpenVMS. To print we use the > command PRINT/QUEUE filename to send the file to the printer queue and > print it. > I want to know if there is a way to print only black and white, to > reduce the printing cost. I once did something similar with an additional print symbiont. I collected the job, did things with the file, and re-queued it to another print queue (using a logical name to specify whih one). If you can work out what changes would be necessary to the print file, that would work. -- Bob Eager Use the BIG mirror service in the UK: http://www.mirrorservice.org ------------------------------ Date: Fri, 28 Nov 2008 02:23:06 -0800 (PST) From: emu@e-bbes.com Subject: Re: Emulation Message-ID: <635db080-c654-4a16-8a37-1580e9c2130b@13g2000yql.googlegroups.com> On Nov 20, 7:32 pm, Wilm Boerhout wrote: > Well, it just so happens a shipment for a customer arrived. It happens > to be an OpenVMS Extension License for AlphaAXP, so VAX must wait. > There's more, of course but this is the gist of it. Why it's > interesting: nowhere on the document is there any mention about CHARON, > and the "emulation environment" mentioned in 2. is specified as "Windows > (R) Emulation Environment". It seems then, that the text is different for AXP and VAX. I don't see "windows" anywhere in the text. I'm curious what you find in your VAX licenses when you open them. Cheers ------------------------------ Date: Fri, 28 Nov 2008 09:16:44 +0000 (UTC) From: helbig@astro.multiCLOTHESvax.de (Phillip Helbig---remove CLOTHES to reply) Subject: Re: forwarding email to a distribution list Message-ID: In article <492f52d6$0$90270$14726298@news.sunsite.dk>, =?ISO-8859-1?Q?Arne_Vajh=F8j?= writes: > Phillip Helbig---remove CLOTHES to reply wrote: > > What am I doing wrong? From a priviledged account: > > > > MAIL> set forward/user=test-user @TEST.DIS > > > > didn't work. (TEST.DIS is located in TCPIP$SMTP_COMMON or, rather, in > > the second directory in the search list which is my definition of this > > logical (and works fine for other things which use TCPIP$SMTP_COMMON, > > such as SMTP.CONFIG).) Specifying the path explicitly (i.e. the second > > directory in the search list) didn't work either. > > > > What am I missing? > > If my memory is correct (but I was wrong last time I tried > to remember back in time), then this was explicit forbidden > by MAIL and is the reason why DELIVER was invented. As pointed out later in the thread, it does work. Maybe it didn't work in an older version of VMS. ------------------------------ Date: 28 Nov 2008 07:36:04 GMT From: "Bob Eager" Subject: Re: Good example of C and MACRO Message-ID: <176uZD2KcidF-pn2-OgBMwlYf0xVb@rikki.tavi.co.uk> On Fri, 28 Nov 2008 00:53:28 UTC, "Richard B. Gilbert" wrote: > I think I have used nine different assembler languages in my career. > > SDS-930, IBM System/360, IBM System/7, H-P 21MXE, PDP-8, PDP-11, VAX, > 80x86 and Z80 for sure. For some of that hardware, assembler was the > ONLY choice! Same here...there was little option. Let's see... ICL 4130, Honeywell 516, ICL 1900, DECSystem-10, PDP-8, ICL 2900, PDP-11, VAX, x86, IBM 370, 8085, Z80, MC68000 are the first ones that come to mind (that's 13!). There are probably others I've forgotten... -- Bob Eager Use the BIG mirror service in the UK: http://www.mirrorservice.org ------------------------------ Date: Fri, 28 Nov 2008 04:59:48 -0800 (PST) From: Neil Rieck Subject: Re: Good example of C and MACRO Message-ID: <45172743-8248-498e-8a8a-5a3df968a64b@u14g2000yqg.googlegroups.com> On Nov 26, 7:05=A0pm, "Richard B. Gilbert" wrote: > Arne Vajh=F8j wrote: > > Mark Wickens wrote: > >> Jan-Erik S=F6derholm wrote: > >>> I can't help to ask, why ? > >>> Why write an "application" (whatever that is) in MACRO ? > > >> Thanks for the replies - yes asking 'why' is a good question. > > >> This is purely an academic exercise - I am doing my 'learn one languag= e > >> a year' and this year it is MACRO-32. > > > If you want to code in assembler, then Macro-32 is probably one > > of the easiest instruction sets to code in - its CISC'ness > > makes it much easier that anything else I have tried. > > > But note that VAX'es stopped being produced in the mid 90's. > > But note that, given the proper software, you can compile VAX Macro to > produce Alpha object code. =A0I wouldn't be surprised if this could also > be done on Itanic. > > ISTR doing this once nine or ten years ago. =A0I had some useful snippet > written in macro and wanted to use it on Alpha. . . . > > There is little reason to write anything in Macro today; device drivers > can be written in C. =A0What else was Macro good for? > > The days when the ability to hand optimize code was useful are long gone > along with the machines on which hand optimization could make a > significant difference! Correct. Unless you are attending a college course titled "ancient programming tools from the CISC era", C is a much better choice. Sometimes "C" is even a better choice for CISC projects. Twenty years ago I was doing some contract work for a local manufacturer. I started the 68hc11 project using a macro-assember but it turned out that I was the only person with the skills to maintain it. Others convinced me to switch to a higher level language. They wanted BASIC but there was nothing available at that time to meet our needs so I went with Intermetrics "C" (now called COSMIC-C). It took about a week to rewrite all the code (there were lots of interrupt handlers etc. and this was an embedded app without any micro OS), The resultant "C" code was child's play to extend and maintain. Neil Rieck Kitchener/Waterloo/Cambridge, Ontario, Canada. http://www3.sympatico.ca/n.rieck/links/openvms_demos.html ------------------------------ Date: Fri, 28 Nov 2008 13:33:36 +0000 From: Tom Wade Subject: Re: Good example of C and MACRO Message-ID: > "Good example in C" I would suggest is an oxymoron. C is a language that combines the power and flexibility of assembler with the readability and ease of use of assembler. --------------------------------------------------------- Tom Wade | EMail: tee dot wade at eurokom dot ie EuroKom | Tel: +353 (1) 296-9696 A2, Nutgrove Office Park | Fax: +353 (1) 296-9697 Rathfarnham | Disclaimer: This is not a disclaimer Dublin 14 | Tip: "Friends don't let friends do Unix !" Ireland ------------------------------ Date: Fri, 28 Nov 2008 05:45:25 -0800 (PST) From: johnwallace4@yahoo.co.uk Subject: Re: Good example of C and MACRO Message-ID: On Nov 28, 12:54 am, Roger Ivie wrote: > On 2008-11-27, johnwalla...@yahoo.co.uk wrote: > > > Now if you'd said the National > > Semiconductor NS16000 had been inspired by VAX with the additional > > design goals of modernisation, removal of cruft, and simple support > > for ROMable code, I'd have agreed with that. > > Pfft. I've never understood how people can say that when the NS16000 > doesn't even have the PC as a general-purpose register. > -- > roger ivie > ri...@ridgenet.net NS16000 wasn't a VAX clone (the Russians did those, right?), it wasn't even trying to be VAX compatible, but chunks of it might well have been VAX-inspired. Anyway, if you can still achieve all the relevant addressing modes using PC-relative addressing, module pointers, etc, which iirc the NS16000 could, what do you actually lose by not having the PC as a general register? (or is it my turn for a sense of humour failure?) Obviously you can't do the usual party tricks like MOV - (R7), -(R7) like some PDP11s could, but so what? Anyway, history has shown that a nice instruction set architecture is not necessarily guarantee of, or even a prerequisite for, market success. Not then, not now. I think Ritchie's in-depth history of C (http://cm.bell-labs.com/cm/cs/ who/dmr/chist.html) says the auto-increment/auto-decrement stuff came from PDP7. One thing I like about C vs C++ is that the C language itself is relatively small; sufficiently small that the number of times I have to look something up, to see what the syntax is, is (for me, in the areas in which I work) small to negligible (hence, although I no longer have either of my copies of K+R, I do not feel lost without them). In comparison, the C++ language and associated guff is so big that no normal person can be expected to remember much of it, and unless you're doing it full time, big bits of the required knowledge get swapped out. Horses for courses, maybe. Has the original author actually said what kind of problem he's interested in solving? Python looks quite interesting for some classes of problem, not that I've actually used it yet. ------------------------------ Date: Fri, 28 Nov 2008 07:53:06 -0800 From: "Tom Linden" Subject: Re: Good example of C and MACRO Message-ID: On Thu, 27 Nov 2008 16:54:11 -0800, Roger Ivie wrote: > On 2008-11-27, johnwallace4@yahoo.co.uk wrote: >> Now if you'd said the National >> Semiconductor NS16000 had been inspired by VAX with the additional >> design goals of modernisation, removal of cruft, and simple support >> for ROMable code, I'd have agreed with that. > > Pfft. I've never understood how people can say that when the NS16000 > doesn't even have the PC as a general-purpose register. The NS16032 instruction was mainly inspired by the VAX. The PC was not in a general register owing to a DEC patent on same. I ported Unix and did PL/I, Fortan and Pascal for that device. -- PL/I for OpenVMS www.kednos.com ------------------------------ Date: Fri, 28 Nov 2008 11:16:25 -0500 From: =?ISO-8859-15?Q?Arne_Vajh=F8j?= Subject: Re: Good example of C and MACRO Message-ID: <4930194e$0$90269$14726298@news.sunsite.dk> Tom Wade wrote: >> "Good example in C" I would suggest is an oxymoron. > > C is a language that combines the power and flexibility of assembler > with the readability and ease of use of assembler. Even if it is a joke, then it has some foundation in reality. It is not possible to create a language that gives you full flexibility to do the tricks you want and still prevent you from doing mistakes. Either you have the cake or you eat it. Arne ------------------------------ Date: Fri, 28 Nov 2008 11:23:25 -0500 From: "Richard B. Gilbert" Subject: Re: Good example of C and MACRO Message-ID: Arne Vajhøj wrote: > Tom Wade wrote: >>> "Good example in C" I would suggest is an oxymoron. >> >> C is a language that combines the power and flexibility of assembler >> with the readability and ease of use of assembler. > > Even if it is a joke, then it has some foundation in reality. It > is not possible to create a language that gives you full flexibility > to do the tricks you want and still prevent you from doing mistakes. > Either you have the cake or you eat it. > The answer is the legendary DWIM! (Do What I Mean) The guy who writes it will be able to buy and sell Bill Gates. ------------------------------ Date: Fri, 28 Nov 2008 09:51:15 -0800 From: "Tom Linden" Subject: Re: Good example of C and MACRO Message-ID: On Fri, 28 Nov 2008 08:16:25 -0800, Arne Vajhøj wrote: > Tom Wade wrote: >>> "Good example in C" I would suggest is an oxymoron. >> C is a language that combines the power and flexibility of assembler >> with the readability and ease of use of assembler. > > Even if it is a joke, then it has some foundation in reality. It > is not possible to create a language that gives you full flexibility > to do the tricks you want and still prevent you from doing mistakes. > Either you have the cake or you eat it. > > Arne Some cakes are tastier than others. -- PL/I for OpenVMS www.kednos.com ------------------------------ Date: Fri, 28 Nov 2008 13:08:47 -0500 From: =?ISO-8859-15?Q?Arne_Vajh=F8j?= Subject: Re: Good example of C and MACRO Message-ID: <493033a5$0$90265$14726298@news.sunsite.dk> Tom Linden wrote: > On Fri, 28 Nov 2008 08:16:25 -0800, Arne Vajhøj wrote: >> Tom Wade wrote: >>>> "Good example in C" I would suggest is an oxymoron. >>> C is a language that combines the power and flexibility of assembler >>> with the readability and ease of use of assembler. >> >> Even if it is a joke, then it has some foundation in reality. It >> is not possible to create a language that gives you full flexibility >> to do the tricks you want and still prevent you from doing mistakes. >> Either you have the cake or you eat it. > > Some cakes are tastier than others. We all know that you prefer [BCDFGHJKLMNPQRSTWVXZ]{2}/[AEIOUY]{1} cakes. :-) Arne ------------------------------ Date: Fri, 28 Nov 2008 13:12:33 -0500 From: =?ISO-8859-1?Q?Arne_Vajh=F8j?= Subject: Re: Good example of C and MACRO Message-ID: <49303486$0$90265$14726298@news.sunsite.dk> Neil Rieck wrote: > Correct. Unless you are attending a college course titled "ancient > programming tools from the CISC era", C is a much better choice. > Sometimes "C" is even a better choice for CISC projects. CISC seems to be living very well. I don't think Intel and AMD are that scared by PPC, SPARC and IA-64. Arne ------------------------------ Date: Fri, 28 Nov 2008 09:09:26 -0800 (PST) From: Naveen Subject: How to make an FTP through a .com file Message-ID: <6fd401ee-c36f-408a-bdec-27c1f2aae436@w1g2000prk.googlegroups.com> Dear Sir/ Maidam I want to transfer some file from one system to another through a .com file. File name is not constant, so i want to make a .com file, in which it will inquire the name of file, and after that, that file should be transferred. Normal FTP works fine, but i want to do with a .com file I tried this but it is not working $ inquire p1 "file name to transfer:-" $ftp 192.168.68.51 hsm ! username of system to which file has to be transferred HotstripmilL ! password of system put ' ' p1 bye $exit Thinking you in advance ------------------------------ Date: Fri, 28 Nov 2008 09:23:17 -0800 (PST) From: Pierre Subject: Re: How to make an FTP through a .com file Message-ID: <734be9fa-057f-4d08-8a7c-0616f53eab8a@k19g2000yqg.googlegroups.com> On Nov 28, 6:09=A0pm, Naveen wrote: > Dear Sir/ Maidam > > I want to transfer some file from one system to another through a .com > file. File name is not constant, so i want to make a .com file, in > which it will inquire the name of file, and after that, that file > should be transferred. Normal FTP works fine, but i want to do with > a .com file > > I tried this but it is not working > > $ inquire p1 "file name to transfer:-" > $ftp 192.168.68.51 > =A0 hsm =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0! username of system to which file= has to be > transferred > =A0 HotstripmilL =A0 =A0 ! password of system > put ' ' p1 > bye > $exit > > Thinking you in advance assuming you are using TCPIP Service FTP client and a reasonably recent version of VMS (untested, from the top of my head): $ inquire filename "file name to transfer" $ unique =3D f$unique() $ open cmd 'unique'.cmd $ write cmd "put ", filename $ write cmd "bye" $ close tmp $ FTP 192.168.68.51/username=3D"hsm"/password=3D"HotstripmilL"/ input=3D'unique'.cmd $ delete/nolog/noconf 'unique'.cmd; $ exit ------------------------------ Date: Fri, 28 Nov 2008 12:28:48 -0500 From: "Richard B. Gilbert" Subject: Re: How to make an FTP through a .com file Message-ID: Naveen wrote: > Dear Sir/ Maidam > > I want to transfer some file from one system to another through a .com > file. File name is not constant, so i want to make a .com file, in > which it will inquire the name of file, and after that, that file > should be transferred. Normal FTP works fine, but i want to do with > a .com file > > I tried this but it is not working > > $ inquire p1 "file name to transfer:-" > $ftp 192.168.68.51 > hsm ! username of system to which file has to be > transferred > HotstripmilL ! password of system > put ' ' p1 > bye > $exit > > Thinking you in advance Why the "' '" in your PUT command? I think you can have a file with the name " " but I would not do it without VERY GOOD REASON. FTP does NOT do symbol substitution! The general approach is to write DCL that writes DCL. $ INQUIRE P1 "File name to transfer:-" ! Why the minus sign??? $ OPEN /WRITE FTPCMDS MUMBLE.COM $ WRITE FTPCMDS "FTP 192.168.68.51" $ WRITE FTPCMDS " HotstripmilL" $ WRITE FTPCMDS "put ' ' 'P1'" $ WRITE FTPCMDS "bye" $ WRITE FTPCMDS "$ EXIT" $ CLOSE FTPCMDS $ @MUMBLE If I intended this for regular use, or use by others, I would add some error handling. I will leave the error handling as an exercise for the student. Or, if you are willing to pay for it. . . . ------------------------------ Date: Fri, 28 Nov 2008 17:33:37 +0000 (UTC) From: helbig@astro.multiCLOTHESvax.de (Phillip Helbig---remove CLOTHES to reply) Subject: Re: How to make an FTP through a .com file Message-ID: In article <734be9fa-057f-4d08-8a7c-0616f53eab8a@k19g2000yqg.googlegroups.com>, Pierre writes: > > I tried this but it is not working > > > > $ inquire p1 "file name to transfer:-" > $ inquire filename "file name to transfer" > $ unique = f$unique() > $ open cmd 'unique'.cmd > $ write cmd "put ", filename > $ write cmd "bye" > $ close tmp > $ FTP 192.168.68.51/username="hsm"/password="HotstripmilL"/ > input='unique'.cmd > $ delete/nolog/noconf 'unique'.cmd; > $ exit So far, so good, but I would recommend READ instead of INQUIRE. ------------------------------ Date: Fri, 28 Nov 2008 13:07:49 -0500 From: "Ken Robinson" Subject: Re: How to make an FTP through a .com file Message-ID: <7dd80f60811281007j75891fa1p839345526e29be4c@mail.gmail.com> On Fri, Nov 28, 2008 at 12:33 PM, Phillip Helbig---remove CLOTHES to reply wrote: > In article > <734be9fa-057f-4d08-8a7c-0616f53eab8a@k19g2000yqg.googlegroups.com>, > Pierre writes: > >> > I tried this but it is not working >> > >> > $ inquire p1 "file name to transfer:-" > >> $ inquire filename "file name to transfer" >> $ unique = f$unique() >> $ open cmd 'unique'.cmd >> $ write cmd "put ", filename >> $ write cmd "bye" >> $ close tmp >> $ FTP 192.168.68.51/username="hsm"/password="HotstripmilL"/ >> input='unique'.cmd >> $ delete/nolog/noconf 'unique'.cmd; >> $ exit I would use "copy/ftp" $ read/end=done/prompt="File name to transfer: " sys$command filenam $ copy/ftp/log 'filename' 192.168.68.51"hsm HotstripmilL"::'filename' Ken ------------------------------ Date: Fri, 28 Nov 2008 13:13:39 -0500 From: =?ISO-8859-1?Q?Arne_Vajh=F8j?= Subject: Re: How to make an FTP through a .com file Message-ID: <493034c8$0$90265$14726298@news.sunsite.dk> Phillip Helbig---remove CLOTHES to reply wrote: > In article > <734be9fa-057f-4d08-8a7c-0616f53eab8a@k19g2000yqg.googlegroups.com>, > Pierre writes: >>> I tried this but it is not working >>> >>> $ inquire p1 "file name to transfer:-" > >> $ inquire filename "file name to transfer" >> $ unique = f$unique() >> $ open cmd 'unique'.cmd >> $ write cmd "put ", filename >> $ write cmd "bye" >> $ close tmp >> $ FTP 192.168.68.51/username="hsm"/password="HotstripmilL"/ >> input='unique'.cmd >> $ delete/nolog/noconf 'unique'.cmd; >> $ exit > > So far, so good, but I would recommend READ instead of INQUIRE. Depending on the context, then the features offered by INQUIRE could be very useful or a disaster. Arne ------------------------------ Date: Fri, 28 Nov 2008 13:14:55 -0500 From: ZL Subject: Re: How to make an FTP through a .com file Message-ID: > Naveen wrote: > > Dear Sir/ Maidam > > > > I want to transfer some file from one system to another through a .com > > file. File name is not constant, so i want to make a .com file, in > > which it will inquire the name of file, and after that, that file > > should be transferred. Normal FTP works fine, but i want to do with > > a .com file I've done a lot of FTP'ing through DCL command procedures, and I've found that a freeware program called cURL works a lot better than trying to get the built-in FTP to take commands. It works for transfers in both directions, it can use HTTP proxies, and there is a version that uses SSH/SSL (I haven't used that, but others have). Bart ------------------------------ Date: Fri, 28 Nov 2008 06:25:15 -0800 (PST) From: steel_and_alum_engr Subject: Re: LAT BARCODE PRINTER Message-ID: On Nov 27, 1:31=A0pm, johnwalla...@yahoo.co.uk wrote: > On Nov 27, 4:15=A0pm, JF Mezei wrote: > > > Ramon Jimenez wrote: > > > The source code has not been changed just recompiled on the new > > > platform. > > I suspect a latent bug, such as partly uninitialised structure or > similar, or maybe a buffer overflow, maybe a data alignment issue, who > knows, anyway a problem which clearly didn't cause visible problems on > the old box, has emerged to cause havoc in the new box. I can't comment on the Pascal compiler, but I do remember having a number of alignment issues moving Fortran apps from VAX to Alpha. And, I assume those issues carry on to Integrity. Not knowing what your code looks like, carefully inspect any structures or common areas, and pay particular attention to what the compiler is doing related to alignment. The new compiler might be "helping" you, padding your structure with extra bytes (for alignment), which is probably not making the printer happy. Good luck. ------------------------------ Date: Fri, 28 Nov 2008 10:54:38 GMT From: =?ISO-8859-1?Q?Jan-Erik_S=F6derholm?= Subject: MUTEX Message-ID: Yes yes, I know, this is an old issue, but... I have severe problem with a batch job going into MUTEX. And I have severe problem to finding out *why* (and then getting rid of it. DELETE/ENTRY doesn't work (says -JBC-E-INCOMPLETE, previous incomplete operation prevents execution). STOP/ID doesn't work (no message at all, process is still there). The batch job seems to hang an a "telnet delete " command. I've tried to "tcpip disconnect dev ", no message but the bg-device still exists. The TNA port exists and is owned by the MUTEX'ed batch job. I've tried to use SDA to find out *what* it is hanging on, but SDA is hard to use when you are not used to it. I've tried to build a couple of tools from the freeware kits (FREE_RSN and MWAIT) but both gives some MACRO errors when built on Alpha (8.2). Maybe they are VAX-only, the readme's doesn't say... Any suggestions ? Jan-Erik. ------------------------------ Date: Fri, 28 Nov 2008 06:39:25 -0500 From: JF Mezei Subject: Re: MUTEX Message-ID: <001bb59d$0$12296$c3e8da3@news.astraweb.com> Jan-Erik Söderholm wrote: > I have severe problem with a batch job going into MUTEX. No need to go further. and then re-install VMS. :-) :-) :-) :-) ------------------------------ Date: Fri, 28 Nov 2008 11:45:23 GMT From: =?ISO-8859-1?Q?Jan-Erik_S=F6derholm?= Subject: Re: MUTEX Message-ID: JF Mezei wrote: > Jan-Erik Söderholm wrote: >> I have severe problem with a batch job going into MUTEX. > > No need to go further. > > and then re-install VMS. > > :-) :-) :-) :-) Fun... I have now also checked DECamds (some pages like the VMS "ask the wizard" talkes about it) but as far as I can see, it needs an GUI. I can not see how DECamds would help in this case. ------------------------------ Date: Fri, 28 Nov 2008 05:11:49 -0800 (PST) From: Volker Halle Subject: Re: MUTEX Message-ID: Jan-Erik, a process goes into MUTEX state, if it's waiting for a MUTEX. The MUTEX address, the process is waiting for should be in PCB$L_EFWM (Event Flag Wait Mask). That mutex should be owned by another process. That process has to have a priority of 16 - so you might be able to find it. It also will have PCB$L_MTXCNT > 0. $ ANAL/SYS SDA> READ SYSDEF SDA> SET PROC /ID= SDA> EXA PCB+PCB$L_EFWM SDA> EXA @(PCB+PCB$L_EFWM) ! should tell you what mutex this is SDA> SHOW SUMM ! Find process with Prio = 16 SDA> SET PROC/IND= SDA> EXA PCB+PCB$L_MTXCNT ! is it > 0 ? SDA> EXIT The PWAIT$SDA tool should do most of this analysis for you. Volker. ------------------------------ Date: Fri, 28 Nov 2008 13:35:12 GMT From: =?ISO-8859-1?Q?Jan-Erik_S=F6derholm?= Subject: Re: MUTEX Message-ID: Volker Halle wrote: > Jan-Erik, > > a process goes into MUTEX state, if it's waiting for a MUTEX. The > MUTEX address, the process is waiting for should be in PCB$L_EFWM > (Event Flag Wait Mask). That mutex should be owned by another process. > That process has to have a priority of 16 - so you might be able to > find it. It also will have PCB$L_MTXCNT > 0. Right, some hard facts... :-) Let's try these... > > $ ANAL/SYS > SDA> READ SYSDEF Hangs quite a long time on that one. I had to stop/id from another terminal after several minutes. And the symbols/commands below gave error (symb not defined) if I did not "read sysdef" before trying them... > SDA> SET PROC /ID= > SDA> EXA PCB+PCB$L_EFWM > SDA> EXA @(PCB+PCB$L_EFWM) ! should tell you what mutex this is > > SDA> SHOW SUMM ! Find process with Prio = 16 > SDA> SET PROC/IND= > SDA> EXA PCB+PCB$L_MTXCNT ! is it > 0 ? > SDA> EXIT > > The PWAIT$SDA tool should do most of this analysis for you. And where do I find *that* "tool" ? Lost again... Jan-Erik. > > Volker. ------------------------------ Date: Fri, 28 Nov 2008 05:42:55 -0800 (PST) From: Volker Halle Subject: Re: MUTEX Message-ID: Jan-Erik, here is a pointer to PWAIT$SDA from openvms.org: http://www.openvms.org/stories.php?story=04/10/17/9996078 If SDA> READ SYSDEF also hangs, you have more than one problem ! This command just reads a file from your system disk. Note that you would most likely have to reboot anyway, even if you are able to find out, which MUTEX your process is waiting for. If so, consider to take a forced crash, this would at least allow you to continue the hang analysis in your spare time ;-) Volker. ------------------------------ Date: Fri, 28 Nov 2008 05:47:09 -0800 (PST) From: Volker Halle Subject: Re: MUTEX Message-ID: <01246abc-0e8e-4ef9-a909-224d6942060f@k19g2000yqg.googlegroups.com> Jan-Erik, if you just want to define those 2 symbols in SDA use: SDA> define PCB$L_EFWM 0C0 SDA> define PCB$L_MTXCNT 0E4 Volker. ------------------------------ Date: Fri, 28 Nov 2008 14:11:18 GMT From: =?ISO-8859-1?Q?Jan-Erik_S=F6derholm?= Subject: Re: MUTEX Message-ID: Volker Halle wrote: > Jan-Erik, > > here is a pointer to PWAIT$SDA from openvms.org: > > http://www.openvms.org/stories.php?story=04/10/17/9996078 > > If SDA> READ SYSDEF also hangs, you have more than one problem ! This > command just reads a file from your system disk. Yes, weird... SYS$LOADABLE_IMAGES:sysdef.stb maybe ? It's there, haven't tried to read/dump it... > > Note that you would most likely have to reboot anyway,... Yes, in about 30 min. > even if you are > able to find out, which MUTEX your process is waiting for. If so, > consider to take a forced crash,... Hm, and that is done, how ? > this would at least allow you to > continue the hang analysis in your spare time ;-) Sound fine... :-) An again, *many* thanks for your time ! And others, sorry to interrupt the AC/DC threads and other interesting stuff... Jan-Erik. > > Volker. ------------------------------ Date: Fri, 28 Nov 2008 14:16:51 GMT From: =?ISO-8859-1?Q?Jan-Erik_S=F6derholm?= Subject: Re: MUTEX Message-ID: Volker Halle wrote: > Jan-Erik, > > if you just want to define those 2 symbols in SDA use: > > SDA> define PCB$L_EFWM 0C0 > SDA> define PCB$L_MTXCNT 0E4 > > Volker. OK, with those defenitions I got : SDA> EXA PCB+PCB$L_EFWM PCB+000C0: 00000000.81F7C6C0 "ÀÆ÷....." SDA> EXA @(PCB+PCB$L_EFWM) FFFFFFFF.81F7C6C0: FFB9FFB0.FFB9FFB0 "°.¹.°.¹." SDA> Well, doesn't tell *me* that much, I must confess... :-) Jan-Erik. ------------------------------ Date: Fri, 28 Nov 2008 14:20:19 GMT From: =?ISO-8859-1?Q?Jan-Erik_S=F6derholm?= Subject: Re: MUTEX Message-ID: Volker Halle wrote: > Jan-Erik, > > to force a crash on an OpenVMS Alpha system: > > Press CTRL-P on the (serial) console terminal or press HALT button, > then > >>>> crash > > The system will automatically reboot after writing the dumpfile. > > Volker. OK :-) I'm aprox 170 Km from the system and was going to reboot using somethig called REBOOT.COM... :-) I'll see if I can find anyone on-site that can press the keys... Jan-Erik. ------------------------------ Date: Fri, 28 Nov 2008 06:17:08 -0800 (PST) From: Volker Halle Subject: Re: MUTEX Message-ID: Jan-Erik, to force a crash on an OpenVMS Alpha system: Press CTRL-P on the (serial) console terminal or press HALT button, then >>> crash The system will automatically reboot after writing the dumpfile. Volker. ------------------------------ Date: Fri, 28 Nov 2008 06:22:05 -0800 (PST) From: Volker Halle Subject: Re: MUTEX Message-ID: <26888dce-5726-46a2-8772-47b9dc8694ac@v42g2000yqv.googlegroups.com> > SDA> EXA PCB+PCB$L_EFWM > PCB+000C0: =A000000000.81F7C6C0 =A0 "=C0=C6=F7....." > Try to find out, which structure this MUTEX address is in SDA> MAP 81F7C6C0 SDA> FORMAT 81F7C6C0 Volker. ------------------------------ Date: Fri, 28 Nov 2008 14:28:58 GMT From: =?ISO-8859-1?Q?Jan-Erik_S=F6derholm?= Subject: Re: MUTEX Message-ID: Volker Halle wrote: >> SDA> EXA PCB+PCB$L_EFWM >> PCB+000C0: 00000000.81F7C6C0 "ÀÆ÷....." >> > > Try to find out, which structure this MUTEX address is in > > SDA> MAP 81F7C6C0 > SDA> FORMAT 81F7C6C0 > > Volker. SDA> EXA @(PCB+PCB$L_EFWM) FFFFFFFF.81F7C6C0: FFB9FFB0.FFB9FFB0 "°.¹.°.¹." SDA> MAP 81F7C6C0 %SDA-E-NOTINIMAGE, address (FFFFFFFF.81F7C6C0) not within a system or user image SDA> FORMAT 81F7C6C0 %SDA-E-INVBLKTYP, invalid block type in specified block SDA> Jan-Erik. ------------------------------ Date: Fri, 28 Nov 2008 06:30:50 -0800 (PST) From: Volker Halle Subject: Re: MUTEX Message-ID: Jan-Erik, for those of you far away from their systems: $ DEFINE OPC$NODUMP N $ DEFINE OPC$REBOOT Y $ MC OPCCRASH Volker. ------------------------------ Date: Fri, 28 Nov 2008 14:32:33 GMT From: =?ISO-8859-1?Q?Jan-Erik_S=F6derholm?= Subject: Re: MUTEX Message-ID: <5iTXk.4484$U5.33762@newsb.telia.net> Volker Halle wrote: > Jan-Erik, > > for those of you far away from their systems: > > $ DEFINE OPC$NODUMP N > $ DEFINE OPC$REBOOT Y > $ MC OPCCRASH > > Volker. > > Perfekt ! Thanks. I'll try those. I've got a guy on-site if the reboot fails... Jan-Erik. ------------------------------ Date: Fri, 28 Nov 2008 15:44:13 +0100 From: "Martin Vorlaender" Subject: Re: MUTEX Message-ID: Jan-Erik Söderholm wrote: > Volker Halle wrote: >> to force a crash on an OpenVMS Alpha system: >> >> Press CTRL-P on the (serial) console terminal or press HALT button, >> then >> >> >>> crash >> >> The system will automatically reboot after writing the dumpfile. > > OK :-) > > I'm aprox 170 Km from the system and was going to reboot > using somethig called REBOOT.COM... :-) > > I'll see if I can find anyone on-site that can press > the keys... IIRC, the following should work, too: $ define opc$reboot yes $ run sys$system:opccrash.exe HTH, Martin -- One OS to rule them all | Martin Vorlaender | OpenVMS rules! One OS to find them | work: mv@pdv-systeme.de One OS to bring them all | http://vms.pdv-systeme.de/users/martinv/ And in the Darkness bind them.| home: martin.vorlaender@t-online.de ------------------------------ Date: Fri, 28 Nov 2008 09:46:17 -0500 From: "Richard B. Gilbert" Subject: Re: MUTEX Message-ID: Jan-Erik Söderholm wrote: > Volker Halle wrote: >> Jan-Erik, >> >> here is a pointer to PWAIT$SDA from openvms.org: >> >> http://www.openvms.org/stories.php?story=04/10/17/9996078 >> >> If SDA> READ SYSDEF also hangs, you have more than one problem ! This >> command just reads a file from your system disk. > > Yes, weird... > > SYS$LOADABLE_IMAGES:sysdef.stb maybe ? > It's there, haven't tried to read/dump it... > >> >> Note that you would most likely have to reboot anyway,... > > Yes, in about 30 min. > >> even if you are >> able to find out, which MUTEX your process is waiting for. If so, >> consider to take a forced crash,... > > Hm, and that is done, how ? RTFM! Briefly, you halt the machine, store certain magic numbers in various registers, and run! The system will bugcheck, write a crash dump, and reboot. My thirteen year old "System Manager's Manual" says, for Alpha: "D PSL 041f0000 D PC FFFFFFFF CON" IIRC this puts the machine into kernel mode and tries to execute the instruction at a non-existent address. VMS finds this so disgraceful that suicide is the only option! For Itanic you will have to do your own homework! I have neither an Itanic nor any manuals for Itanic. Some, older, machines simplify this by supporting a console "CRASH" command. ------------------------------ Date: Fri, 28 Nov 2008 06:53:53 -0800 (PST) From: Volker Halle Subject: Re: MUTEX Message-ID: <5ee9c037-42a5-4d33-b171-fa14e8ad932d@a12g2000yqm.googlegroups.com> Richard, > My thirteen year old "System Manager's Manual" says, for Alpha: > "D PSL 041f0000 > D PC FFFFFFFF > CON" the above is the sequence for VAX systems, not for Alpha systems. Alpha systems implement the >>>> crash SRM command. Volker. ------------------------------ Date: Fri, 28 Nov 2008 09:55:43 -0500 From: "Richard B. Gilbert" Subject: Re: MUTEX Message-ID: Volker Halle wrote: > Richard, > >> My thirteen year old "System Manager's Manual" says, for Alpha: >> "D PSL 041f0000 >> D PC FFFFFFFF >> CON" > > the above is the sequence for VAX systems, not for Alpha systems. > Alpha systems implement the >>>> crash SRM command. > > Volker. Sorry about that. The book lists the VAX procedure, immediately followed by the Alpha procedure. I grabbed the wrong one. Sorry about that! ------------------------------ Date: Fri, 28 Nov 2008 07:23:00 -0800 (PST) From: IanMiller Subject: Re: MUTEX Message-ID: On 28 Nov, 13:42, Volker Halle wrote: > Jan-Erik, > > here is a pointer to PWAIT$SDA from openvms.org: > > http://www.openvms.org/stories.php?story=04/10/17/9996078 > > If SDA> READ SYSDEF also hangs, you have more than one problem ! This > command just reads a file from your system disk. > > Note that you would most likely have to reboot anyway, even if you are > able to find out, which MUTEX your process is waiting for. If so, > consider to take a forced crash, this would at least allow you to > continue the hang analysis in your spare time ;-) > > Volker. More direct pointer www.encompasserve.org/~miller/ It reads SDA$READDIR:SYSDEF.STB so may have a problem. You can also use it on the crash dump you get. ------------------------------ Date: Fri, 28 Nov 2008 15:38:33 GMT From: VAXman- @SendSpamHere.ORG Subject: Re: MUTEX Message-ID: <00A834CD.ECB3A06F@SendSpamHere.ORG> In article <01246abc-0e8e-4ef9-a909-224d6942060f@k19g2000yqg.googlegroups.com>, Volker Halle writes: >Jan-Erik, > >if you just want to define those 2 symbols in SDA use: > >SDA> define PCB$L_EFWM 0C0 >SDA> define PCB$L_MTXCNT 0E4 This can be version and architecture specific. -- VAXman- A Bored Certified VMS Kernel Mode Hacker VAXman(at)TMESIS(dot)COM ... pejorative statements of opinion are entitled to constitutional protection no matter how extreme, vituperous, or vigorously expressed they may be. (NJSC) Copr. 2008 Brian Schenkenberger. Publication of _this_ usenet article outside of usenet _must_ include its contents in its entirety including this copyright notice, disclaimer and quotations. ------------------------------ Date: Fri, 28 Nov 2008 15:42:34 GMT From: VAXman- @SendSpamHere.ORG Subject: Re: MUTEX Message-ID: <00A834CE.7CB8DA56@SendSpamHere.ORG> In article , Volker Halle writes: >Jan-Erik, > >for those of you far away from their systems: > >$ DEFINE OPC$NODUMP N >$ DEFINE OPC$REBOOT Y >$ MC OPCCRASH > >Volker. Why are you crashing the machine to determine the MUTEX? Post the results of EVAL of the address you found in the PCB$L_EFWM or the result of the suggested MAP. Version of VMS would be helpful too. -- VAXman- A Bored Certified VMS Kernel Mode Hacker VAXman(at)TMESIS(dot)COM ... pejorative statements of opinion are entitled to constitutional protection no matter how extreme, vituperous, or vigorously expressed they may be. (NJSC) Copr. 2008 Brian Schenkenberger. Publication of _this_ usenet article outside of usenet _must_ include its contents in its entirety including this copyright notice, disclaimer and quotations. ------------------------------ Date: Fri, 28 Nov 2008 08:28:01 -0800 (PST) From: Volker Halle Subject: Re: MUTEX Message-ID: <073c45cb-7a91-4df7-b7db-e23a0a2c05c9@u14g2000yqg.googlegroups.com> On 28 Nov., 16:38, VAXman- @SendSpamHere.ORG wrote: > In article <01246abc-0e8e-4ef9-a909-224d69420...@k19g2000yqg.googlegroups.com>, Volker Halle writes: > > >Jan-Erik, > > >if you just want to define those 2 symbols in SDA use: > > >SDA> define PCB$L_EFWM 0C0 > >SDA> define PCB$L_MTXCNT 0E4 > > This can be version and architecture specific. > It's an OpenVMS Alpha V8.2 system - same as mine from which I extracted the PCB offsets. Volker. ------------------------------ Date: Fri, 28 Nov 2008 17:29:38 GMT From: =?ISO-8859-1?Q?Jan-Erik_S=F6derholm?= Subject: Re: MUTEX Message-ID: <6UVXk.4486$U5.33802@newsb.telia.net> VAXman- @SendSpamHere.ORG wrote: > In article , Volker Halle writes: >> Jan-Erik, >> >> for those of you far away from their systems: >> >> $ DEFINE OPC$NODUMP N >> $ DEFINE OPC$REBOOT Y >> $ MC OPCCRASH >> >> Volker. > > Why are you crashing the machine to determine the MUTEX? I/we are trying to get it going again... > > Post the results of EVAL of the address you found in the PCB$L_EFWM or I think I did, didn't ? Jan-Erik. > the result of the suggested MAP. Version of VMS would be helpful too. > ------------------------------ Date: Fri, 28 Nov 2008 13:38:06 -0500 From: JF Mezei Subject: Re: MUTEX Message-ID: <001c178b$0$12323$c3e8da3@news.astraweb.com> Is there a simple explanation of what a MUTEX is ? What sort of operation requires the use of a MUTEX ? ------------------------------ Date: Fri, 28 Nov 2008 09:13:29 -0800 (PST) From: Pierre Subject: PPL$ documentation Message-ID: hi, I'm trying to find the documentation of the PPL$ routines on HP site but the latest one I find in the VMS 7.3 one http://h71000.www7.hp.com/doc/73final/documentation/pdf/OVMS_RTL_PPL.pdf?jumpid=reg_R1002_USEN is there a documentation for VMS 8.x? TIA, Pierre ------------------------------ Date: Fri, 28 Nov 2008 17:29:44 -0000 From: "Richard Brodie" Subject: Re: PPL$ documentation Message-ID: "Pierre" wrote in message news:f4eb8080-f031-4462-91ee-eb8ea9818bb5@c1g2000yqg.googlegroups.com... > is there a documentation for VMS 8.x? I doubt it, it's been unsupported for several years. ------------------------------ Date: Fri, 28 Nov 2008 09:42:50 -0800 (PST) From: Pierre Subject: Re: PPL$ documentation Message-ID: <7dc6a0b8-7d6c-4a50-b0ea-bb7147430909@z1g2000yqn.googlegroups.com> On Nov 28, 6:29=A0pm, "Richard Brodie" wrote: > "Pierre" wrote in message > > news:f4eb8080-f031-4462-91ee-eb8ea9818bb5@c1g2000yqg.googlegroups.com... > > > is there a documentation for VMS 8.x? > > I doubt it, it's been unsupported for several years. is there something that replace it ? ------------------------------ Date: Fri, 28 Nov 2008 09:55:45 -0800 (PST) From: Pierre Subject: Re: PPL$ documentation Message-ID: <8c2f2d93-e298-4e24-a821-dd10fe9d8adf@j39g2000yqn.googlegroups.com> > is there something that replace it ? I have M processes which want to use a resource which may be used at most by N On Nov 28, 5:13=A0pm, Pierre wrote: > hi, > > I'm trying to find the documentation of the PPL$ routines on HP site > but the latest one I find in the VMS 7.3 onehttp://h71000.www7.hp.com/doc= /73final/documentation/pdf/OVMS_RTL_PPL.... > > is there a documentation for VMS 8.x? > > TIA, > Pierre PLL$ moved from maintenance to unspported around the time of VMS 7.1.The 7.1 release notes say it was still available on the freeware and if all you want to do is carry on using it, that may work for you. If that doesn't work for you, my first suggestion would be to look at a threads implementation of some flavour, VMS's POSIX threads implementation perhaps being the obvious first choice (which by coincidence is what VMS Ask The Wizard also says: http://h71000.www7.hp.com/wizard/wiz_2781.html). ------------------------------ Date: Fri, 28 Nov 2008 10:11:35 -0800 (PST) From: johnwallace4@yahoo.co.uk Subject: Re: PPL$ documentation Message-ID: <186266bf-b587-4b77-9c09-4a2ea82d220c@l42g2000yqe.googlegroups.com> On Nov 28, 5:55=A0pm, Pierre wrote: > > is there something that replace it ? > > I have M processes which want to use a resource which may be used at > most by N the wheel rewriting semaphores routines that use $ENQ/$DEQ, I thought > I may use PPL$ routines. > > maybe it is not the right choice. duno. that's why I'm looking for the > PPL$ doc... > > Pierre That may well be a good candidate for DECthreads (or POSIX threads or whatever they're now called). The relevant VMS manual used to be called Guide to DECthreads (same manual covered Tru64), but was later renamed to Guide to POSIX Threads (or something like that). I can't find either of them after a quick look on the HP VMS docs site. The industry standard book on the subject is "Programming with POSIX Threads" by David Butenhof, who was a DEC employee and may even still be at HP: http://www.thinkingparallel.com/2007/04/11/ten-questions-with-dav= id-butenhof-about-parallel-programming-and-posix-threads/ ------------------------------ Date: Fri, 28 Nov 2008 13:16:14 -0500 From: =?ISO-8859-1?Q?Arne_Vajh=F8j?= Subject: Re: PPL$ documentation Message-ID: <49303562$0$90265$14726298@news.sunsite.dk> Pierre wrote: > On Nov 28, 6:29 pm, "Richard Brodie" wrote: >> "Pierre" wrote in message >> news:f4eb8080-f031-4462-91ee-eb8ea9818bb5@c1g2000yqg.googlegroups.com... >>> is there a documentation for VMS 8.x? >> I doubt it, it's been unsupported for several years. > > is there something that replace it ? DECThreads/POSIX threads as a library. Various language specific solutions (Fortran, Java etc.). Arne ------------------------------ Date: Fri, 28 Nov 2008 13:17:47 -0500 From: =?ISO-8859-1?Q?Arne_Vajh=F8j?= Subject: Re: PPL$ documentation Message-ID: <493035bf$0$90265$14726298@news.sunsite.dk> Pierre wrote: > I'm trying to find the documentation of the PPL$ routines on HP site > but the latest one I find in the VMS 7.3 one > http://h71000.www7.hp.com/doc/73final/documentation/pdf/OVMS_RTL_PPL.pdf?jumpid=reg_R1002_USEN > > is there a documentation for VMS 8.x? My guess would be that those routines has not changes since VMS 5.something, so those docs should be fine. Arne ------------------------------ Date: Fri, 28 Nov 2008 10:27:06 -0800 (PST) From: Pierre Subject: Re: PPL$ documentation Message-ID: <49f5c238-e312-46c2-a18f-f454cb118a90@x14g2000yqk.googlegroups.com> > PLL$ moved from maintenance to unspported around the time of VMS > 7.1.The 7.1 release notes say it was still available on the freeware > and if all you want to do is carry on using it, that may work for you. > If that doesn't work for you, my first suggestion would be to look at > a threads implementation of some flavour, VMS's POSIX threads > implementation perhaps being the obvious first choice (which by > coincidence is what VMS Ask The Wizard also says:http://h71000.www7.hp.com/wizard/wiz_2781.html). the text in 'Ask The Wizard' could me mine >I have been given the task of renovating an old c program which would > benefit greatly from being rewritten using threads. [...] I've been given the > time only to 'fix-up' the program, not to redesign it from scratch. BTW, the wizard answers: > PPL source code is available on the OpenVMS Freeware. but I can not find anything about PPL on the freeware CD :( ------------------------------ Date: Thu, 27 Nov 2008 23:55:40 -0800 (PST) From: Pierre Subject: Re: search list, surprising error, inconsistent behavior Message-ID: On Nov 28, 5:16=A0am, AEF wrote: > On Nov 27, 5:05 pm, Pierre wrote: > > > > > hi, > > > I was playing with search lists and got a very surprising error. > > > $ cre/dir $1$dka100:[root.subdir1] > > $ cre/dir $1$dka100:[root.subdir2] > > $ cre/dir $1$dka200:[root] > > $ copy tt: $1$dka100:[root.subdir1]afile.txt > > =A0^Z > > $ dir disk:[root.subdir1] > > > Directory DISK:[ROOT.SUBDIR1] > > > AFILE.TXT;1 > > > Total of 1 file. > > $ dir disk:[root.subdir2] > > %DIRECT-E-OPENIN, error opening DISK:[ROOT.SUBDIR2]*.*;* as input > > -RMS-E-DNF, directory not found > > -SYSTEM-W-NOSUCHFILE, no such file > > > VMS does not complain about the missing $1$dka200:[root.subdir1]0 as > > it found AFILE.TXT in $1$dka100:[root.subdir1] but raises an error if > > the existing directory on $1$dka100: is empty instead of just the > > NOSUCHFILE warning :-( > > > I found such a behaviour while testing a program which uses LIB > > $FIND_FILE. so the faulty is not DCL but the RTL. > > > any idea for a workaround ? (I can not have the same hierarchy on both > > disks and changing the order of the search list is not a fix as each > > disk may have its own set of empty directories) > > > TIA, > > Pierre. > > How is "DISK" defined? My guess is that you have it to be > > $ DEFINE DISK $1$DKA100:,$1$DKA200: yes. the line is missing from the copy/paste. sorry. > If this is the case, then everything is working fine. When you run > > $ dir disk:[root.subdir1] > > a directory with this name exists on both disks and no error results. absolutly NO! look at the $ cre/dir in my post. there is no sub directory under [root] on $1$DKA200: Pierre. ------------------------------ Date: Fri, 28 Nov 2008 10:14:45 -0800 (PST) From: AEF Subject: Re: search list, surprising error, inconsistent behavior Message-ID: <0d82b469-47c7-4838-8b56-cbe8193990f8@o2g2000yqd.googlegroups.com> On Nov 28, 2:55 am, Pierre wrote: > On Nov 28, 5:16 am, AEF wrote: > > > > > On Nov 27, 5:05 pm, Pierre wrote: > > > > hi, > > > > I was playing with search lists and got a very surprising error. > > > > $ cre/dir $1$dka100:[root.subdir1] > > > $ cre/dir $1$dka100:[root.subdir2] > > > $ cre/dir $1$dka200:[root] > > > $ copy tt: $1$dka100:[root.subdir1]afile.txt > > > ^Z > > > $ dir disk:[root.subdir1] > > > > Directory DISK:[ROOT.SUBDIR1] > > > > AFILE.TXT;1 > > > > Total of 1 file. > > > $ dir disk:[root.subdir2] > > > %DIRECT-E-OPENIN, error opening DISK:[ROOT.SUBDIR2]*.*;* as input > > > -RMS-E-DNF, directory not found > > > -SYSTEM-W-NOSUCHFILE, no such file > > > > VMS does not complain about the missing $1$dka200:[root.subdir1]0 as > > > it found AFILE.TXT in $1$dka100:[root.subdir1] but raises an error if > > > the existing directory on $1$dka100: is empty instead of just the > > > NOSUCHFILE warning :-( > > > > I found such a behaviour while testing a program which uses LIB > > > $FIND_FILE. so the faulty is not DCL but the RTL. > > > > any idea for a workaround ? (I can not have the same hierarchy on both > > > disks and changing the order of the search list is not a fix as each > > > disk may have its own set of empty directories) > > > > TIA, > > > Pierre. > > > How is "DISK" defined? My guess is that you have it to be > > > $ DEFINE DISK $1$DKA100:,$1$DKA200: > > yes. the line is missing from the copy/paste. sorry. > > > If this is the case, then everything is working fine. When you run > > > $ dir disk:[root.subdir1] > > > a directory with this name exists on both disks and no error results. > > absolutly NO! look at the $ cre/dir in my post. there is no sub > directory under [root] on $1$DKA200: Sorry, your right. I've re-analyzed the situation and here's what I've found: In the first directory command, RMS finds the file AFILE.TXT; so there is no error. In the second directory command, RMS finds no files. Since the last place it looked was $1$DKA200:[root.subdir2], and since that directory does not exist, you get the "-RMS-E-DNF, directory not found" error. If the directory did exist, you'd get the "%DIRECT-W-NOFILES, no files found" error. This is normal VMS RMS behavior. If *any* matching file is found, there is no error. If no matching files are found, you get an error based on the last place RMS looked. (An exception is using the editor in which case the editor lets you edit a new file.) This is documented in the User's Manual section 13.13.3 "Search Lists with Wildcards". (The section number is from the V6.2 manual.) "When you use a search list with a command that does not accept wildcards in a file specification, the system forms a file specification by using each equivalence string in the search list until a file specification for an existing file is found. The system displays an error message only after it checks all equivalence strings in a search list. Then, the system reports an error only on the last file it attempts to find." Actually, this applies to all commands in which the search list is used in the input parameter. It does not apply when the search list is used in the output parameter; only the first equivalence name is used that case. AEF ------------------------------ Date: Fri, 28 Nov 2008 01:56:11 -0800 (PST) From: SOA digiblitz Subject: SOA Conference a one-day seminar in chennai on Dec-13,2008 called "ESOA2008" on Message-ID: <55b3e2f7-1728-4eb9-bd80-7d802915940c@d42g2000prb.googlegroups.com> We are hosting a one-day seminar in chennai on Dec-13,2008 called "ESOA2008" on Enterprise Service Oriented Architecture. We have world champions as Key Note Speakers. We are going to have very fine gentlemen like Dr. Pallab Saha, Graham Mcleod as key note speakers in the conference who are going bring their rich, world class experience in SOA and Enterprise Architecture to you and your employees. In this seminar we will reveal the =A1=A7Hidden Secrets=A1=A8 of SOA and guide you through the process of =A1=A7Philosophy-->Practicality=A1=A8. We also=84=B3= Theory issue certificate of completion of =A1=A7SOA=A1=A8 course for our attendees= . The seminar is full of case studies and business cases and will be highly interactive and informative. We have couple of panel discussions where we are going to have heated discussion regarding tools and services around EA-SOA space which will be an excellent benefit for attendees. Please visit www.esoaconference.com for further details. Please contact us at esoa2008@ digiblitz.com or registration@ esoaconference.com for registration and further details. We can be reached over phone on 0172-4668670/0172-4668579/9600066602/9600066102/9840700639. We also have wonderful package for sponsorship if your organization is interested in. Please call Suresh @ 9840700639 ( sureshkb@ digiblitz.com ) or Gaurav @9815818056 ( gaurav.sogi@digiblitz.com ) or Vivek @ 9444352306 ( vivek.bhasin@digiblitz.com ). Suresh Balabisegan President & Chief Architect, digiBlitz Technologies Inc 751 Miller Dr SE Suite D-3, Leesburg, VA 20175. Ph: 571-722-6279 Fax: 703-852-4367 ------------------------------ End of INFO-VAX 2008.636 ************************