Re: Re: Where do I start?

Gerhard Postpischil <[email protected]> Thu, 27 May 2010 20:27:48 -0400
Newsgroups gmane.comp.emulators.turnkey-mvs
Message-ID <[email protected]>
On 5/27/2010 7:07 PM, Ron Hudson wrote:
> If my INBUF is generous shouldn't I always have the full input from my
> screen?

The 3270 family has more than one form of READ command. The most 
frequently used, and the one implemented by TSO, is READ 
MODIFIED, that returns the AID, cursor address, and for modified 
fields only, the SBA, address, and text of each field. Your 
declared buffer length does not affect the input mode. When you 
learn about structured fields, you'll find a way to read the 
whole screen, but for now you can't. The only way you'd get a 
full screen's worth of data, and then some, is if your terminal 
supports the Test-Request key, which is deprecated on modern 
devices. So under normal conditions the input buffer size is 3 
plus the sum of all input field lengths + 3 each (for SBA). So 
the absolutely worst case (screen contains only one byte input 
fields) for a 24*80 would be 3+(24*40*(3+1))= 3843.

Earlier I mentioned support for screen geometry other than 
24*80. IBM's common sizes are 24*80, 32*80, 43*80, and 27*132 
(models 2-5). What I do for some of my programs (with custom 
macros), is to generate each SBA with a one byte row and one 
byte column number; just before writing the screen, I go through 
and convert those to the address in 3270 format.

But I'm glad you got it working.


Gerhard Postpischil
Bradford, VT


------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/turnkey-mvs/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/turnkey-mvs/join
    (Yahoo! ID required)

<*> To change settings via email:
    [email protected] 
    [email protected]

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/