|
> 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 +---
As an Amazon Associate we earn from qualifying purchases.
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.