GnuCOBOL supports the verb TRANSFORM even though this verb has been replaced by INSPECT.
I point out that for the TRANSFORM verb there is no support for the optional word CHARACTERS.
And that there is no support for the possibility of converting from one "alphabet" to another "alphabet".
I don't know if this possibility is offered by the new verb INSPECT.
Attached is the documentation of the Realia COBOL manual which supported the alphabet change.
It took a while for me to recognize what this post was about...
Yes - TRANSFORM is implemented (to ease migrations, it should not be used in new programs).
Yes - it should have an optional CHARACTERS word and it also should be able to convert by an ALPHABET name - both of this missing is a bug, which was solved with [r4603]; so: thank you for the bug report.
It took a while for me to recognize what this post was about...
Yes - |TRANSFORM| is implemented (to ease migrations, it should not be
used in new programs).
Yes - it should have an optional |CHARACTERS| word and it also should
be able to convert by an |ALPHABET| name - both of this missing is a
bug, which was solved with [r4603] https://sourceforge.net/p/gnucobol/code/4603/; so: thank you for the
bug report.
Transform has been replaced since 1985 and should NOT use used in any new programming.
The element CHARACTERS is a noise word it is not required, and in this case is not an option for this verb - It is a redundant one after all.
Realia is also a redundant compiler, as far as I know is not under current maintenance.
Yes, read up on the INSPECT statement using the Programming Guide along with Alphabet-Clause in the SPECIAL-NAMES block.
I did play with this to transform EBCDIC to ASCII some time back but while the data itself was readable I had issues with eol on the records as it came from PDS/PDSE, so I had to find another way of dealing. It was not a priority.
I trust you have downloaded it as well as the Quick Reference guide if needed.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
GnuCOBOL supports the verb TRANSFORM even though this verb has been replaced by INSPECT.
I point out that for the TRANSFORM verb there is no support for the optional word CHARACTERS.
And that there is no support for the possibility of converting from one "alphabet" to another "alphabet".
I don't know if this possibility is offered by the new verb INSPECT.
Attached is the documentation of the Realia COBOL manual which supported the alphabet change.
If you register online here then you would not have entries waiting for hours or days....FYI
It took a while for me to recognize what this post was about...
Yes -
TRANSFORMis implemented (to ease migrations, it should not be used in new programs).Yes - it should have an optional
CHARACTERSword and it also should be able to convert by anALPHABETname - both of this missing is a bug, which was solved with [r4603]; so: thank you for the bug report.Related
Commit: [r4603]
Have you back ported it to v3.2 ?
On 15/05/2022 16:26, Simon Sobisch wrote:
Related
Commit: [r4603]
If you click on this link you see it is one of the parts that are in 3.2-dev and will be taken over to 4.x soon.
Transform has been replaced since 1985 and should NOT use used in any new programming.
The element CHARACTERS is a noise word it is not required, and in this case is not an option for this verb - It is a redundant one after all.
Realia is also a redundant compiler, as far as I know is not under current maintenance.
Yes, read up on the INSPECT statement using the Programming Guide along with Alphabet-Clause in the SPECIAL-NAMES block.
I did play with this to transform EBCDIC to ASCII some time back but while the data itself was readable I had issues with eol on the records as it came from PDS/PDSE, so I had to find another way of dealing. It was not a priority.
I trust you have downloaded it as well as the Quick Reference guide if needed.
PG & QR updated supporting noise word CHARACTERS in TRANSFORM verb
c4604.