Has anyone used the Data Stream Tranlation API for C. I got the Virtual Terminal Emulator API to work but can't get the translation API (QD0STRTS)and(QD0TRNDS) to work. I can't seem to see any data stream at all. IBM is vague in this area so I'm looking for any examples of the use of this API.

Reply With Quote
And I'm still not clear from the API docs what it is supposed to do when using *FORMAT instead of 3270xx for the translation mode. So I tried just adding some calls to QD0TRNDS (after QD0OPNTS of course) to see what it would pass back to me. I didn't find the magic incantation right away, and haven't got back to it. What other DSM apis are you refering to? There are a series of APIs called the Dynamic Screen Manager APIs. They were added to facilitate generating screen formats on the fly instead of using DDS for pre-formatted displays. Prior to the DSM apis it was necessary to use the DDS keyword USRDFN for this, and supply what became known as User Defined Data Streams (aka UDDS). Generating screen formats on the fly is useful in a number of tool/utility type programs. But this is very different than translating data streams like you would in emulation programs. I mentioned the DSM apis because they are good are encapsulating the details of the 5250 data stream from the programmer, but the program has to know how it wants to format the screen (eg get a file's definition and generate a screen format to match it). The DSM apis are also useful for determing the characteristics of a screen (eg is it 132 col capable? mouse present? color? GUI? etc) even when you only use DDS to present the screens. I also use the DSM apis to do things like retrieve the current screen image as a 1920 or 3564 character map. What I am trying to do is change from our current use of a SNA api that translates the data steam to an ASCII plain text 1920 character string, to a TCP/IP api that will do the same. Is this a 5250 data stream? 3270? What SNA api are you using to get it? Are you just trying to get the current screen image? Or is this part of an emulation tool? Doug
