x'20' terminal field conversion from 5250 to genie.
Posted: Tue Aug 20, 2013 3:24 am
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}
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}