Keyboard Shortcuts
Likes
Search
CP SET PFnn COPY ccu
Hello,
I never had the opportunity to have a 3270 terminal printer during my time as a lead systems programmer at TI LICC or OCF Research Center. I'm wondering how to define this in the configuration file to Hercules and in DMKRIO.? My hope is this might make it easier to copy & paste text on the 3270 devices we use to email or other programs. Bertram Moshier of Chicago WB8ERT |
¿ªÔÆÌåÓýBertram ? It copies to a 3270 family printer, so you would need a TN3270 program that supports printers. I don¡¯t see any support for 3270 printers in Hercules, but I don¡¯t see how you would be any better off. It simply prints the entire screen to a printer. Most 3270 emulators can copy the screen to a windows printer, or to the clip-board. So you can select text with the mouse and copy to the Windows clip-board. ? If you want to indulge in scripting you have a couple of options. You can use a 3270 program like Attachmate Extra which supports scripting, or you can set ? DIAG8CMD??????? ENABLE SHCMDOPT??????? ENABLE DIAG8 ? In your config file which will allow the use of the HCP command on VM to issues shell/dos commands. This of course is not safe if you allow remote users to logon to your Hercules¡ E.g. ? Ready; T=0.01/0.05 23:51:04?????????????????????????????????????????????? hcp sh dir *.cmd /w?????????????????????????????????????????????????????? ?Volume in drive C has no label.????????????????????????????????????????? ?Volume Serial Number is 6278-0F55??????????????????????????????????????? ?Directory of C:\hercdata\VM370CE.V1.R1.2???????????????????????????????? vm370ce.cmd?????? vm370ce.org.cmd?? vm370ce.wx.cmd??? vm370trm.cmd??????? vmtrm.cmd???????? vmtrm.lnk.cmd?????????????????????????????????????????? ???????????????6 File(s)????????? 1,782 bytes???????????????????????????? ???????????????0 Dir(s)? 216,290,430,976 bytes free?????????????????????? Ready; T=0.01/0.05 23:51:36???????????????????? ? Hope this helps Dave????????????????????????? ? .??????????????????????? ? ? ? ? From: [email protected] <[email protected]> On Behalf Of Bertram Moshier via groups.io
Sent: Wednesday, May 22, 2024 6:55 AM To: [email protected] Subject: [h390-vm] CP SET PFnn COPY ccu ? Hello, |
It copies to a 3270 family printer, so you would need a TN3270> program that supports printers. I don¡¯t see any support for 3270 > printers in Hercules, but I don¡¯t see how you would be any better > off. It may be that if the OS supports printing to terminal-attached printers, x3270 could do this. It has, and can automatically invoke, pr3287 to provide attached-printer service. (pr3287 can also do printer sessions where it connects directly to the host.) De |
Hello!
Give the Fish a bigger tank and rub my mascots ears for me. Because Fish one of the things I did notice early on is that the PR3287 device support is terminal only, and Hercules wasn't setup for that. That is of course for the Hercules 3 Series. How hard would it be to build it into the system? ----- Gregg C Levine gregg.drwho8@... "This signature fought the Time Wars, time and again." On Wed, May 22, 2024 at 10:38?PM Fish Fish via groups.io <david.b.trout@...> wrote: "Be careful doing that!", complained the Jedi Knight as the timelordI don¡¯t see any support for 3270 printers in used his own talents to cause the Separatist they had captured to blurt out everything he knew about where he came from and why he was the only one on the planet. -- from a timelord's travels with the Jedi Knights a memoir not yet published. |
Gregg Levine wrote:
[...] Because Fish one of the things I did notice early on is thatI don't understand what you're saying. Yes, a 3287 is indeed a printer: * GA27-3190-0 "3287 Printer Models 11 and 12 Component Description, page 1-1: "The IBM 3287 Printer (Models 11 and 12) is a compact, movable, desk top printer that is attached to a controlling unit either by a direct attached or data-link attached system communication loop." but your claim that "...and Hercules wasn't setup for that." is confusing me. Hercules most certainly does support 3287 printers, and has done so since at least 2 July 2002 (i.e. version 2.16.3): * 2.16.3: 3287 printer support via TN3270 (Tomas Masek) That is of course for the Hercules 3 Series.And every subsequent version of Hercules since then too. As I said, it's been there since version 2.16.3! How hard would it be to build it into the system?It's already there! And has been for the past 22 years! -- "Fish" (David B. Trout) Software Development Laboratories mail: fish@... |
toggle quoted message
Show quoted text
-----Original Message-----Whilst the entry for "Local non-SNA 3270 devices" "display or printer" there is no mention of "printer" in the detailed description of the command. Am I to assume that ANY 3270 device can be a printer, it just depends on how its defined on the host? Dave |
¿ªÔÆÌåÓýBertram, OK so I did some experimentation, but still need to do more work¡. ? 1. In DMKRIO I defined device 0CF as a 3284 printer. 2. In the Hercules configuration file I defined 0CF as a 3270 with a pool name of PRT 3. I set up an IBM PC Communications session to connect with a pool of PRT ? And provided I leave the PCOMMS session as a TERMINAL it connects¡. But not as a printer.. why might this be? ¡ and after issuing a SET PF1 COPY 0CF pressing PF1 results in some data being sent to a printer somewhere, I think¡¡¡ . indeed if both screens are set to 24x80 the data is copied. So I suspect this support wasn¡¯t updated when we added dynamic screen size selection¡ .. but I still don¡¯t see how it could be useful¡ ? Dave G4UGM ? From: [email protected] <[email protected]> On Behalf Of Bertram Moshier via groups.io
Sent: Wednesday, May 22, 2024 6:55 AM To: [email protected] Subject: [h390-vm] CP SET PFnn COPY ccu ? Hello, |
You can plug a printer or a terminal into any port on a 3x74. It's?up to the host's software - typically, the sysgen or MVSCP for local non-SNA devices, along with VTAM - to treat it as a terminal or a printer. Hercules will handle a printer data stream and pass it along to a printer-supporting program like pr3287. On Thu, May 23, 2024 at 3:41?AM Dave Wade via <dave.g4ugm=[email protected]> wrote:
--
Jay Maynard |
¿ªÔÆÌåÓýJay, This is VM. There isn¡¯t a sysgen as such, just DMKRIO for real devices. There are no SNA devices or VTAM. I think there is a PR3270 equivalent, but I also think there was a 3270 printer driver for RSCS. What is puzzling is that if I define a device as a 3270 printer in IBM PCOMMS it won¡¯t connect to Hercules¡ Dave ? From: [email protected] <[email protected]> On Behalf Of Jay Maynard via groups.io
Sent: Thursday, May 23, 2024 12:41 PM To: [email protected] Subject: Re: [h390-vm] CP SET PFnn COPY ccu ? You can plug a printer or a terminal into any port on a 3x74. It's?up to the host's software - typically, the sysgen or MVSCP for local non-SNA devices, along with VTAM - to treat it as a terminal or a printer. Hercules will handle a printer data stream and pass it along to a printer-supporting program like pr3287. ? On Thu, May 23, 2024 at 3:41?AM Dave Wade via <dave.g4ugm=[email protected]> wrote:
? -- Jay Maynard ? |
I would expect you'd need to define it in DMKRIO?as a 3287, then. I don't have PCOMM, so can't try using it to connect a printer. I haven't tried pr3287 on Linux either. On Thu, May 23, 2024 at 10:03?AM Dave Wade via <dave.g4ugm=[email protected]> wrote:
--
Jay Maynard |
¿ªÔÆÌåÓýJay, I defined it was defined as a 3284, but I now tried a 3287 and it still won¡¯t connect. I assume like a 3270 display it should connect before VM is loaded¡ ¡ but it doesn¡¯t Dave ? From: [email protected] <[email protected]> On Behalf Of Jay Maynard via groups.io
Sent: Thursday, May 23, 2024 4:05 PM To: [email protected] Subject: Re: [h390-vm] CP SET PFnn COPY ccu ? I would expect you'd need to define it in DMKRIO?as a 3287, then. ? I don't have PCOMM, so can't try using it to connect a printer. I haven't tried pr3287 on Linux either. ? On Thu, May 23, 2024 at 10:03?AM Dave Wade via <dave.g4ugm=[email protected]> wrote:
? -- Jay Maynard ? |
Fish, Jay, Bertram,
toggle quoted message
Show quoted text
I really must learn to read things properly. So if I 1. Define a device in the Hercules config as a 3287 rather than a 3270, 2. Set the matching device in DMKRIO as a 3287 then things work almost as expected. So pr3278 will connect and if I set a set a PF key as per the subject, pressing that key copies data to the printer. BUT there are still issues. 1. On windows pr3287 only closes the printer when you exit, and nothing is printed till then even with the -emflush option. 2. if your terminal is other than 24x80 the data isn't correctly formatted. And whilst there is possibly some use for 3287 printers I can't really see a use for the PF COPY function. Dave -----Original Message----- |
Dave Wade wrote:
[...] BUT there are still issues.Have you tried doing a devinit? 2. if your terminal is other than 24x80, the data isn'tI am not familiar with Herc's existing 3287 support, but this sounds like a likely bug to me. And whilst there is possibly some use for 3287 printers I can'tI myself can't see the use of a 3287 AT ALL, let alone for the PF COPY function! :) I personally doubt very many Hercules users (if any at all!) have a bona fide need for such a device, but since Herc does support such a thing, its support *should* be accurate/correct IMO. The opening (creating) of a GitHub Issue sounds warranted to me. -- "Fish" (David B. Trout) Software Development Laboratories mail: fish@... |
toggle quoted message
Show quoted text
-----Original Message-----No, but I have now and it makes no different.... I don't think it¡¯s a Hercules bug. I think it¡¯s a VM/370 bug to do with the way support for dynamic screen sizes were added.2. if your terminal is other than 24x80, the data isn'tI am not familiar with Herc's existing 3287 support, but this sounds like a likely I suspect the COPY command reads the 3270 screen but expects it is a 24 x 80 screen when its not, it interprets the data incorrectly. Doesn't some one have a 3174 with an ASCII adaptor that allows printer attached to it to appear as a 3278. It might be useful to them.And whilst there is possibly some use for 3287 printers I can't reallyI myself can't see the use of a 3287 AT ALL, let alone for the PF COPY function! :) I see PC Comms has the ability to do some conversion to HPGL and Plotters so perhaps useful there. I personally doubt very many Hercules users (if any at all!) have a bona fide needI think it is accurate. I think it¡¯s a VM bug. I will try and investigate. --Dave |
Dave Wade wrote:
Fish wrote:Oh well. It was worth a shot.Dave Wade wrote:No, but I have now and it makes no different.... I wouldn't know. You would know more about that than me.I don't think it¡¯s a Hercules bug. I think it¡¯s a VM/370 bug to do2. if your terminal is other than 24x80, the data isn'tI am not familiar with Herc's existing 3287 support, but this [...] I think it¡¯s a VM bug. I will try and investigate.I leave that to you. As far as the -emflush issue goes, it might just be a bug in the Windows version of x3270? But again, I leave that to you. You guys working on VM/370 CE do amazing work! -- "Fish" (David B. Trout) Software Development Laboratories mail: fish@... |
Decades ago I did some work with 3270 printers.? A printer is nothing more than another I/O addressable device.? Printing a 3270 monitor's screen contents was a local control unit function.? It was part of the CU's configuration.? The "print key" on a local monitor would send data to the configured printer attached to the same control unit.? That is one flavor of printing.? While it looks like this, the use of a CP command is different.
toggle quoted message
Show quoted text
There is nothing stopping an application, VM/370 in this context, from sending content to any printer.? I did a bunch of that in CICS/VS "in the day".? The functionality is similar.? The user presses a monitor key and the screen appears at a printer. However, they are implemented entirely differently.? VM has to do the sending and it is not part of the 3270 control unit definition. I would concur that the issue would appear to be in the VM/370 implementation.? It is not an issue with the "device" or "control unit" emulation software doing the printing. It has been a long time.? There may have been some control characters recognized by the printer that were not recognized by monitors.? I only mention that, because to adjust the CP function for printing a monitor's buffer may require use of those characters.? A 3270 component description might be needed to adjust this. I realize there are no concrete answers here, but this may help in first understanding the underlying issue and perhaps fixing it. Harold Grovesteen On 5/23/24 18:27, Fish Fish wrote:
Dave Wade wrote:Fish wrote:Oh well. It was worth a shot.Dave Wade wrote:No, but I have now and it makes no different.... |