Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Standard Functions 1

Status
Not open for further replies.

webrabbit

MIS
Jan 31, 2003
1,059
0
0
US
Does anyone have a list or a pointer to a list of the standard functions (e.g "function mod") in 85 COBOL?
 
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.

Regards,

Glenn
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top