Re: It's TGET not TPUT to get the data: Where do I start?

Ron Hudson <[email protected]>
Newsgroups gmane.comp.emulators.turnkey-mvs
Message-ID <[email protected]>
On Tue, May 25, 2010 at 3:03 PM, Mike Schwab <[email protected]>wrote:

>
>
> On Tue, May 25, 2010 at 4:44 PM, Ron Hudson <[email protected]<hudson.ra%40gmail.com>>
> wrote:
> >
> > On Tue, May 25, 2010 at 2:34 PM, PeterH <[email protected]<peterh5322%40rattlebrain.com>>
> wrote:
> >>
> >> On May 25, 2010, at 9:11 AM, steve donato wrote:
> >>
> >> > I think last responder ment TGET to get data and cursor location,
> >> > TPUT is for output. And I agree "Insert Cursor" is the IC attribute.
> >>
> >> Normally, TPUT is text, only, and without any "orders", such as IC,
> >> SF, etcetera, unless it is MODE=FULLSCR.
> >>
> >> TGET usually inputs the MODIFIED fields text, only.
> >
> > I am looking at  http://tommysprinkle.com/mvs/P3270/input.htm
> >
> > Where Tommy says:
> > When we issue the TGET macro with the ASIS parameter specified, TSO will
> issue a "Read Modified" command to the 3270 terminal.  The terminal will
> respond with (1) an AID  or Action ID character that identifies which key
> was the cause of input to be accepted (Enter, PKxx, PAx, Clear), (2) the
> location of the cursor when the input key was pressed and (3) fields with
> the MDT bit set.  The fields are returned starting with a x'11' followed by
> a two byte encoded buffer address followed by the data from the field.  By
> scanning for the special code x'11' we can find the start and end of each
> data field.
> >
> > I think this looks like:
> >
> > Aid/Action ID
> >
> > Cursor Location
> >
> > 11 [Field Location] Field data
> >
> You will need to know which field location is what field in your
> screen / file layout.
>
> sure I have all those. for now I just wanna get a look at what TGET
returns..



>
> > 11 [Field Location] Field data
> >
> > Followed by ??
> >
> > <for each field with mdt set>
> >
> Is there a total input buffer length?
> Prefill the buffer with binary zeros and test for that bein the end of
> screen?
> Or send a "Last screen field" with MDT on?
>

Or set MDT on all fields and expect them all returned?


>
> --
> Mike A Schwab, Springfield IL USA
> Where do Forest Rangers go to get away from it all?
>  
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.