FLAM Issue Tracker - FL5
View Issue Details
0000781FL54. Element, Byte, Record or other APIpublic2016-02-04 16:242016-02-11 15:31
Falk Reichbott 
Falk Reichbott 
normalfeaturehave not tried
resolvedfixed 
GeneralGeneralGeneral
5.1.10 
5.1.115.1.11 
0000781: Support individual conversion of element data on byte and record interface
To use the format.element() on the record interface with Cobol a decimal string representing a number or float must be converted to a valid picture reprasentation of a Cobol datatype to work with.

Also string must be collapsed and other kind of conversions are useful.

Add new functions for read and write, which accepts a conversion string.

fcbreadx("type.string(colaps)",ptr,-1,0,pfFil) == FCBLOCX

The X stands for ecxtented and a addtional conversion string must be provided.

No tags attached.
Issue History
2016-02-04 16:24Falk ReichbottNew Issue
2016-02-04 16:24Falk ReichbottStatusnew => assigned
2016-02-04 16:24Falk ReichbottAssigned To => Falk Reichbott
2016-02-05 08:30Falk ReichbottDescription Updatedbug_revision_view_page.php?rev_id=278#r278
2016-02-05 08:38Falk ReichbottNote Added: 0000946
2016-02-11 15:31Falk ReichbottNote Added: 0000947
2016-02-11 15:31Falk ReichbottStatusassigned => resolved
2016-02-11 15:31Falk ReichbottFixed in Version => 5.1.11
2016-02-11 15:31Falk ReichbottResolutionopen => fixed

Notes
(0000946)
Falk Reichbott   
2016-02-05 08:38   
To add the conversion string to each fcbread/write or FCRPUT/GET/LOC to open, run and close the converter for one element is inperformant.

We will add 2 new functions to open and close a converter. And the corresponding handle must be given to the corresponding fcbreadx/writex or FCRGETX/LOCX/PUTX functions like i the sample below.

cnv=fcbopcnv();
fcbreadx(ptr,-1,0,fil,cnv)
...
fcbreadx(ptr,-1,0,fil,cnv)
fcbclscnv(cnv);
(0000947)
Falk Reichbott   
2016-02-11 15:31   
Add new function to FLUC byte (fcbopenv, fcbclosev, fcbreadv, fcbwritev) and record interface (FCROPNV, FCRCLSV, FCRGETV, FCRLOCV, FCRPUTV) which provides/acceptes a new element data conversion handle.

With this conversion handel you can overwrite if format.element() the default conversion module to read from or write neutral FLAM5 element data types in a specific representation to the application memory.

This can be used to collapse strings or to read a XML element containing a number as 64 bit integer value.