Page 1 of 1

x'20' terminal field conversion from 5250 to genie.

Posted: Tue Aug 20, 2013 3:24 am
by prioli
One question about 5250 to Genie conversion of dds.

We have as standard field a char 42 in order to standardize i/o for different filed of a DS.
I mean that this 42 char field is redefined by rpg program in two part,
One as input
One as output
Varing in size and type each part of file, separated by an x20 char as ‘Field separator’.
Example,
1) First filed of a ds is a char 02 used as key for table (A)
The first 2 char from left is used as input field for a key value of table
Than we have one char set to x20 exadecimal used as field separator (or terminator)
And last 40 char used as output field as describe value of key table.

2) Second field of DS is a date input field
So the first 10 char (edited date) is used as input date field than the x20 exadecimal filed separator and last 32 char is unused so blank filled and output to video.

And so on.

In green screen everything work fine and 5250 terminal show left part of field as varyng size input filed
In the genie browser converted video instead all field are represented as 42 char input field, it doesn’t work the x20 field separator.

It is possible to maintain the 5250 usage also in genie convert screen.? (…and recognize the x20 separator field.?)

{"type":"O","row":3,"col":1,"attr":"20","data":"Barcode...............:F4","size":25},
{"type":"I","row":3,"col":27,"attr":"25","data":" ?","size":42,"idx":0},
{"type":"O","row":3,"col":70,"attr":"3A","data":":","size":1,"noRender":true},


{"type":"I","row":6,"col":27,"attr":"26","data":"EUR Euro","size":42,"idx":3},
{"type":"O","row":6,"col":70,"attr":"3A","data":":","size":1,"noRender":true}

Re: x'20' terminal field conversion from 5250 to genie.

Posted: Thu Sep 19, 2013 11:45 pm
by Scott Klement
Unfortunately, this will not work in Genie. What you are doing is "tricking" the 5250 emulator by inserting a hex code into the data stream. So what gets sent to the emulator is instructions saying to put an input field at column X, row Y, with a length Z. (Where X,Y, and Z are the values you specified in the DDS).

Then, you put an attribute code in the middle of the field to "trick" it into not displaying a portion of the input field.

Genie, however, is generating browser fields. So it sees you request a field of length Z, and it puts a browser field of that length onto the screen. When you later try to hide a part of it, it won't work, because the browser doesn't hide fields based on a hex code.

Sorry.

Re: x'20' terminal field conversion from 5250 to genie.

Posted: Wed Oct 09, 2013 11:23 am
by prioli@priosoft.it
Thanks Scott, you are always present and accurate.!