I have used the function "REVERSE(TEXT-VARIABLE)" but it may be an IBM Mainframe Only Function. I was using it to trim off the trailing spaces. I dont know if it is considered Intrinsic or not. Some verbs like Inspect and Evaluate are also handy but they act like functions. They may actually exhibit function-like behavour.
If you do not like my post feel free to point out your opinion or my errors.
IMHO anything prefixed by the word "function" couldn't be considered 85-standard. Although many similarities exist between different installations (Microfocus / Enterprise etc) these are all strictly speaking "intrinsic" functions as opposed to the standard cobol verbs like EVALUATE & INSPECT
Note that intrinsic can be defined as "belonging to a thing by its very nature".
The intrinsic functions were added to the COBOL 85 standard via an amendment in 1989 (almost 20 years ago!) and are supported across all platforms that conform to the standard as amended. I've used these on various IBM mainframes, AcuCOBOL (which supports almost any OS known to man), and the HP-3000. Even the open source TinyCOBOL supports them.
They are a widely recognized part of standard COBOL.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.