What are the functions like c/c++ in cobol?

Questions by prem123   answers by prem123

Showing Answers 1 - 3 of 3 Answers

techieheart

  • Sep 11th, 2006
 

Intrinsic functions in COBOL can be coded this way:FUNCTION FunctionName(Parameters)If your installation is using LE/370 then you can access the following functions:1. Date functions: eg... CURRENT-DATE INTEGER-OF-DATE DATE-OF-INTEGER2. Numeric: eg... SQRT SUM MODE3. String eg... UPPER-CASE LOWER-CASE

  Was this answer useful?  Yes

In C/C++ you can define the function by the arguments taken and arguments returned and request an execution of function any neccessary number of times.

In COBOL you simply use a PERFORM Paragraph-Name (TIMES, UNTIL, THRU, WHILE whichever applies) statement to reference the same code in the program a desired number of times. Using MOVE statements you can input neccessary arguments or pass them back to the logical request.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions