× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



What about a simple "WhoAmI" program that displays the user name, the 
time, the default printer?

Would a program like this meet your criteria? (I am not holding this as 
bug free, only that it has always worked for me without failing.  My 
working version also gets the IP address, but I deleted that since I don't 
understand how it works.)


             PGM 
/* .............................................................. */ 
/* ..........THIS PROGRAM SIMPLY DISPLAYS who I am                */ 
/* .....                                                        . */ 
             DCL        VAR(&MSGTXT) TYPE(*CHAR) LEN(85) 
             DCL        VAR(&NAME) TYPE(*CHAR) LEN(10) 
             DCL        VAR(&printer) TYPE(*CHAR) LEN(10) 
             DCL        VAR(&DATE6) TYPE(*CHAR) LEN(6) 
             DCL        VAR(&DATE8) TYPE(*CHAR) LEN(10) 
 
             RTVJOBA    USER(&NAME) JOB(&DEVD) DATE(&DATE6) + 
                          PRTDEV(&PRINTER) /* get information */ 
             CVTDAT     DATE(&DATE6) TOVAR(&DATE8) TOFMT(*DMYY) +  
                          TOSEP(/) 
             CHGVAR     VAR(&MSGTXT) VALUE('User-' *CAT &NAME + 
                          'Printer-' *CAT &PRINTER *CAT &DATE8) 

             SNDPGMMSG  MSGID(CPF9898) MSGF(QCPFMSG) MSGDTA(&MSGTXT) + 
                          TOPGMQ(*EXT) MSGTYPE(*INQ) 
****************** End of data ****************************************
_______________________
Booth Martin
boothm@earth.goddard.edu
http://www.spy.net/~booth
_______________________




"Brendan Bispham" <midrangel@black-and-blue.com>
Sent by: owner-midrange-l@midrange.com
12/07/1999 06:23 AM
Please respond to MIDRANGE-L

 
        To:     <MIDRANGE-L@midrange.com>
        cc: 
        Subject:        RE: Software Vendors

This has been a long thread, with a few big claims. But is anyone prepared
to actually post some bug-free code (that actually does something 
useful!).

I thought about setting an open challenge; produce a completely bug-free
program and lay yourself open to the comments of the list.

But I realised that because most programs are a series of assumptions, 
made
because of previous programs, a single (useful) program cannot be bug-free
in itself, unless it makes no assumptions whatsoever (except perhaps, that
is executing).

And isn't that the real problem? A bug-free program is dependent upon so
many things outside of it's control, that a 'butterfly flapping it's 
wings'
somewhere on the system, may cause chaos in the perfect program.

I will stand corrected with an example.

NB, should a perfect program be produced, then it will have to pass the 
same
tests a Software Vendor is expected to pass: International differences and
different OS VRMs.

In anticipation of enlightenment,

Brendan Bispham

Black and Blue Software Engineering
http://www.black-and-blue.com


+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
| To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.