× 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.




     Hmmmm. I can't test it right now, but what happens if you run 
     STRPCO (Start PC Organizer). I can't remember if it returns an 
     error if you run the command on a workstation. 
     
     Eric DeLong


______________________________ Reply Separator _________________________________
Subject: Re: PC or Workstation 
Author:  <MIDRANGE-L@midrange.com > at INET_WACO
Date:    10/8/98 5:01 PM


> Alison Herman wrote:
> 
> > Hi to all.
> >> > Does anyone know of a way to tell (from either a CL or RPG prgrom)  if 
> > session you are running is on a PC or dummy workstation?
     
There isn't a reliable way to determine if you have a PC attached, I 
don't believe... You can get the device type from feedback area in 
rpg but that only supplies type, which any reliable emulation program 
would "have" to look like in order to work... You could do it through
hook & crook by keeping a table somewhere, but I suspect that's not what 
you are looking for..... Unless you have a Large number of the same type 
of dumb terminals and just a few pc's, then you could sort of keep track 
that way... but that means "hard coded"... 
     
One other way comes to mind.......little messy but it would work.....
     
Change all device names that are pc's to somthing you could check for
in a program,,, ie: PC001, PC002, etc...... That would depend on whether 
you have naming standards for devices...... but you could then retrieve 
the device name in the feedback area,,, scan for the "PC" portion and 
do what ever it is you want to do.. if you find a PC......
     
It ain't pretty... but it would work..........
     
I will now go into my "flame" proof shelter for the night...... 
+---
| 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 
+---
     


+---
| 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.