Home Page
   
 
Home
Features
Screen Shots
Requirements
Download
Ordering
Support
Notes
Online Help
About Me
 
Other Items
Tips for New 3270 Users Back

Here are a few notes about using a 3270-style screen, for folks who may be new to a mainframe terminal.

3270 Fields

You may be familiar with programs in DOS or Linux that put up menu's and input fields in a full-screen format, maybe something like this yast image on SUSE Linux:

A 3270 screen is similar to that, with the various input fields, tabbing, and function keys. One thing you might find unusual though, is that each 3270 input field is always preceeded by a blank, such as this ISPF screen, where I've left the field underscores visible (I usually turn them off):

There are various field types on a 3270 screen, one type is Protected, and another is Unprotected (input). In the example above, everything is protected other than the input fields with the underscores. If you move the cursor to a protected field and try to type, a little man with arrows appears on the left of the status bar, like this, where I'm trying to type characters on top of the protected word "Profile":

So to type a profile name, you need to move the cursor just past the blank in front of that input field (underscore). Note that the blank is not exactly a blank. It contains a hidden Attribute Byte that tells the 3270 screen what type of field it is, what color the field should be, whether the user typed something in that field that needs to be sent to the host, and a few other things that can be held in 8 bits. And not visible is another Attribute Byte at the end of each field, which makes things even more interesting (i.e. don't try to type past the end of a field).

Field Navigation

It's best to learn NOT to use the arrow keys to move the cursor around between fields. That's too tedious and you could easily end up on an Attribute Byte and wonder why the little man keeps appearing.

Instead, try using the following keys to navigate between fields:

Function Key Action
Tab tab Move to the next field to the right of the current cursor position
Backtab shift-tab Move to the previous field to the left of the current cursor position
Home home Move to the top left field on the screen [1]
BottomHome alt-home Move to the bottom left field on the screen (not on original 3270)
Newline shift-enter Move the cursor down one line to the left field [2]
BackNewLine alt-enter Move the cursor up one line and to the left field (not on original 3270)

[1] ISPF by default puts the command line on the bottom, and enables tabbing to the menu bar fields at the top. If you want to work that way, you might want to use the BottomHome key (alt-home) as your home key, and in fact, edit the keyboard so the home key runs the BottomHome function.

Or... you can do what many people do, and adjust the ISPF settings (option 0) and uncheck the Command line at bottom and Tab to action bar choices options, as shown below:

Once you do that, you can use the Home key as it is to move to the command line. And when you want to use the ISPF menu bar at the top, use the mouse and double click, which will run MoveCursorEnter and act a lot like a GUI menu, which is the ISPF designer's plan.

[2] Newline is perhaps the most important key for field navigation. It can be much faster than tab when moving down the screen when there are multiple fields to the right. I even edit my backslash key to Newline so I don't need to click shift-Enter, since I use it so often.

Typing In Fields

Ok, now that we can move the cursor easily between input fields, we can type as expected. But there still might be some issues worth talking about.

There are two modes, what I call "normal" and "insert" mode. Normal mode overtypes whatever data is already in the field, and this is the default. However, by clicking the Insert key, that sets Insert mode and data to the right of where you are typing is scooted to the right instead of being replaced.

Fields on a 3270 screen tend to have a limited size, typically less than one line on the screen, and often shorter such as the 8 character member name and similar shown in the screens above. As mentioned above, there is an Attribute Byte at the start of the field, and another Attribyte byte and the end of the field.

So let's say you type 12345678 in an 8 character field. After you type the 8 the cursor "jumps" past the trailing Attribute Byte, which can be a bit confusing. And even more confusing, is that application programmers can define fields so the cursor automatically jumps from one field to the next, as if you pressed the Tab key. Be aware of that when typing. There's an option Enable Auto Skip on the Display options that you can disable if you want to avoid the skipping.

Now let's say you have 123456 already typed in a field, but you move the cursor to the 1 and click the Insert key, which sets insert mode. The screen should look like this: Note the cursor changes to a verticle bar (by default) when you are in Insert mode:

So now we type 78 which fills the field, but when we type 9 nothing happens except we see the little man again, and he's pointing to the right this time. That means our insert is being blocked by the end of the field.

Note the Insert mode stays on until you click the Reset key (left ctrl). By default clicking the insert key again does NOT toggle Insert mode off. That's a quirk of a real 3270 terminal. Instead, you need to click Reset, or clicking any key that sends the data to the host also turns off Insert mode (Enter, PF keys, etc.). There's an option Toggle Insert Key in the Display options of you want the Insert key to work like Windows apps.

Clearing a Field or Part of a Field

Many times you'll be at the front of a field containing data, and you want to just clear it out before typing something new. Instead of wasting time covering the field with spaces, just click the End key in Vista. By default, that clears the field from the current cursor location to the end. It's called the EraseEndOfField and was a key on a real 3270 terminal, used often. In fact, I edit my ` key at the upper left to EraseEndOfField where my fingers can find it without looking. That's how important it is.

Scrolling on a 3270 Screen

3270 screens have no ability to scroll like you see in a DOS window or PuTTY window. Instead, to simulate scrolling each line of data needs to be resent by the host to the terminal, updated as needed to look like the screen is scrolling, when it's not. The default scrolling value in ISPF is PAGE, meaning you'll scroll up or down with PF7 and PF8 an entire page at a time. Many people leave it that way, but there are other options you might look into. I like the CSR (cursor) function myself, which acts like PAGE unless the cursor is located within the scrolling area, then we scroll based on the cursor location.

Vista also will send a PF7 or PF8 to scroll up and down when you click the mouse wheel. Be careful with this because it's easy to scroll more than one click at a time. And if your mouse wheel has no clicks? Probably best not to use it for scrolling in Vista.

   
  Home | Features | Screen Samples | Download | Requirements
Ordering | Tech Support | Notes | Online Help | About Me | Other Items

Page Last Updated 05/29/2023
Contact support@tombrennansoftware.com