APPLICATION NOTE #126 USING 3270 EMULATION MODE WITH XYWRITE III PLUS Rev. 02 There are a number of packages on the market that allow you to enter 3270 emulation mode. This application note describes the special setup needed to run, from XyWrite, the 3270 emulation program produced by IBM. Other emulation packages may respond differently. If so, please call XYQUEST's Technical Support Department. INSTALLATION First be sure that you have enough extra memory to run the emulation program. Remember, XyWrite requires 256K of memory (384K with the Spelling Checker). You must add to that the amount of memory required by the emulation program and any other programs that you have loaded. If you have sufficient memory, install the 3270 emulation program according to the directions supplied with that program. Modify the AUTOEXEC.BAT file to load the emulation program before loading XyWrite. KEYBOARD TABLE The IB (IBM) function call clears the XyWrite keyboard buffer. You must assign IB to the key you use to exit 3270 emulation mode. 1. Determine the keycode of the key you are using to exit 3270 emulation mode. A common key sequence for this function is Ctrl-Esc, which is keycode 1. (Refer to the keyboard diagram in Chapter 6 of the XyWrite III Plus Reference Guide for a diagram of keys and their associated keycodes.) 2. Call the XyWrite keyboard file to the screen. F5call ibm.kbd 3. For the key sequence Ctrl-Esc, find the TABLE=CTRL statement and then move the cursor to the key definition for key 1. 4. Change the key definition line to read, for example: 1=ib 5. Store and load the keyboard file. F5load ibm.kbd PRINTER FILE To run the 3270 emulation program from XyWrite, you must also include a KM (Keyboard Mode) command in the printer file. This command allows XyWrite to clear the keyboard buffer when too many keystrokes have accumulated while the 3270 emulation program has control. To add this command to the printer file: 1. Call your printer file to the screen. For example: F5call 3epsonfx.prn 2. Move the cursor past the comments section (comment lines start with a ;). Before the first PT (Print Type) table, enter the following command: km=3 3. Store and load the printer file. F5load 3epsonfx.prn RUNNING 3270 EMULATION MODE Assuming you have loaded the emulation program into memory, you can now use its hot key (e.g., Ctrl-Esc) to enter the emulation program from XyWrite. You may want to first press Ctrl-M and release some memory before entering the emulation mode. Refer to the XyWrite III Plus Reference Guide for more information on memory usage.