Skip to main content

Is there a way to write custom intrinsic functions?  Currently, the list includes items like LENGTH, ABS, LOWER-CASE, UPPER-CASE, and so on.  Can I add additional ones to this list, or should I continue to use stuff like C$SYSTEM and pipe files?  Specifically, I would love to add some string searching and manipulation functions.

Is there a way to write custom intrinsic functions?  Currently, the list includes items like LENGTH, ABS, LOWER-CASE, UPPER-CASE, and so on.  Can I add additional ones to this list, or should I continue to use stuff like C$SYSTEM and pipe files?  Specifically, I would love to add some string searching and manipulation functions.

If you wrote your functions in C and then made a dll or Unix shared library, then in COBOL you could call the dll and then call the functions. Also, have you seen our C$REGEXP library routine?


Is there a way to write custom intrinsic functions?  Currently, the list includes items like LENGTH, ABS, LOWER-CASE, UPPER-CASE, and so on.  Can I add additional ones to this list, or should I continue to use stuff like C$SYSTEM and pipe files?  Specifically, I would love to add some string searching and manipulation functions.

This really seems like the most palatable option after reading through the docs.   Thanks!


Is there a way to write custom intrinsic functions?  Currently, the list includes items like LENGTH, ABS, LOWER-CASE, UPPER-CASE, and so on.  Can I add additional ones to this list, or should I continue to use stuff like C$SYSTEM and pipe files?  Specifically, I would love to add some string searching and manipulation functions.

Between the INSPECT, STRING, UNSTRING statements and the LIKE regular expression capability in an IF statement, I can only wonder what string searching and manipulation functions you want to create.  Are you willing to share?