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}
x'20' terminal field conversion from 5250 to genie.
-
- New User
- Posts: 2
- Joined: Tue Aug 09, 2011 2:40 pm
- First Name: Paolo
- Last Name: Prioli
- Company Name: Prl Srl
- Address 1: Via Santo Stefano 57/1
- City: Gradara
- State / Province: Outside Canada/USA
- Zip / Postal Code: 61012
- Country: Italy
- Contact:
x'20' terminal field conversion from 5250 to genie.
- Attachments
-
- genie.png (139.22 KiB) Viewed 1945 times
-
- 5250b.png (75.38 KiB) Viewed 1945 times
-
- 5250a.png (76.1 KiB) Viewed 1945 times
-
- Experienced User
- Posts: 2711
- Joined: Wed Aug 01, 2012 8:58 am
- First Name: Scott
- Last Name: Klement
- Company Name: Profound Logic
- City: Milwaukee
- State / Province: Wisconsin
Re: x'20' terminal field conversion from 5250 to genie.
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.
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.
-
- New User
- Posts: 1
- Joined: Fri Aug 16, 2013 10:31 am
- First Name: Paolo
- Last Name: Prioli
- Company Name: Priosoft
- Address 1: V.Santo Stefano 57/1
- City: Gradara
- State / Province: Outside Canada/USA
- Zip / Postal Code: 61012
- Country: Italy
- Contact:
Re: x'20' terminal field conversion from 5250 to genie.
Thanks Scott, you are always present and accurate.!
Who is online
Users browsing this forum: No registered users and 0 guests