Path: utzoo!utgpu!watserv1!watmath!att!att!tut.cis.ohio-state.edu!ucbvax!VTVM1.BITNET!FEATS From: FEATS@VTVM1.BITNET (Steve Greenfield) Newsgroups: comp.lang.asm370 Subject: Coding Questions Message-ID: <9011011400.AA10311@ucbvax.Berkeley.EDU> Date: 1 Nov 90 12:58:33 GMT Sender: daemon@ucbvax.BERKELEY.EDU Reply-To: IBM 370 Assembly Programming Discussion List Distribution: inet Organization: The Internet Lines: 20 I am writing a command processor to run on NetView and I had a couple of concerns about the best way to approach some problems. The code uses the NetView presentation services to send a 3270 data stream to the terminal (erase/write) and waits for a response from the user (aid '7D'/ enter). The problem I am confronted with is how to take the input from the screen and disect it. If the user only fills in 1 field (which should occur most of the time) then I get the aid, cursor location, sba , addr and then the field of data (i.e.; x'7D 4DC9 11 4CF8'+field of data). If the user fills in all 13 fields then I obviously receive 13 sba's, addr's and 13 fields of data. What is the best way to move this data from the input area to the work fields. What I am trying to do is build a table which contains 13 sets of information. The first 2 bytes contain a addr (i.e.; x'4CF8'), the next 4 bytes contain the address of the field I want to move the input into, and the last 4 bytes contain the length of the field. When I receive my input I find the 2 bytes after the sba (x'11') and compare that to my table. When I match I then EXECUTE a move using the length entry in my table and the address in my table to move the data from the input area to the work area! Isn't this a roundabout way of performing this type of function?