COBOL User Groups COBOL COBOL Programming
Home | Search | COBOL Forums | Join COBUG | Change COBUG Account | Support us | Advertise with us | Contact us | About us | Site Map
Programming Software: | DCD III - COBOL Program Documentation | OpenSCL - Batch COBOL Migration | RPV - Graphical COBOL Print

COBOL Jobs

 >  COBOL Job Listing
 >  COBOL Job Seekers
 >  Post COBOL Jobs
 >  Interview Questions
 >  Job Resources

COBOL Resources

 >  Blogs
 >  Books
 >  Computer Timeshare
 >  COBOL Examples
 >  Forums
 >  Knowledge Bases
 >  Magazines
 >  Manuals
 >  Portals
 >  Support
 >  Training
 >  Tutorials
 >  User Groups
 >  White Papers

COBOL Software

 >  Change Management
 >  COBOL Compilers
 >  Data Access
 >  Database
 >  Documentation
 >  COBOL Editors
 >  File Conversion
 >  GUI
 >  Legacy Migration
 >  Legacy Modernization
 >  Mainframe Security
 >  Report Generators
 >  Sort
 >  Terminal Emulators
 >  Test
 >  Tools
 >  Trans. Processing

COBOL Information

 >  Events
 >  News Articles
 >  Newsletters
 >  Product News
 >  COBOL Standards

COBOL Migration, COBOL Conversion - UV Software Ad
UV Software has a complete solution for conversion of mainframe MVS or VSE JCL, COBOL, & DATA batch systems to Unix, Linux, or Windows/SFU.

Over 50 successful conversions including global corporations & government agencies. Please see demo conversions & detailed explanations at: www.uvsoftware.ca

You may send samples of your files for conversion & return by email. You may download 1 free utility from: www.uvsoftware.ca/ libuvhd.htm

'uvhd' displays data files with packed/binary fields in 'vertical hexadecimal', and includes many interactive functions (browse, search, select, update, print, etc).

COBOL Services

Travancore Software Solutions offers winning mainframe COBOL strategies for:

- SOA Enablement
- Mainframe COBOL
  Migration
- Mainframe COBOL
  Application
  Development
- Mainframe Application
  Support & Maintenance
- Enterprise Application
  Integration

Contact us at sales@travancore.net.

COBOL Report Generator

Print graphical COBOL reports in Windows with RPV Reports. Insert graphics (images, photos, logos, charts, etc.) into your COBOL reports to improve the print quality of your COBOL reports. See how RPV Reports can be used to preview or print graphical COBOL reports in Windows.

COBOL Documentation

Are your mainframe COBOL applications properly documented? DCD III is a comprehensive COBOL documentation and application understanding tool that will allow you to reduce COBOL maintenance, development, and mainframe migration costs. Learn more about how you can document and understand your mainframe COBOL applications with DCD III.

COBOL Migration

Migrate your batch mainframe COBOL applications to open systems platforms, such as Windows, AIX and Linux, with OpenSCL. OpenSCL is a mainframe emulator that runs on a PC or server with Windows and Unix-based operating systems. OpenSCL is your batch mainframe COBOL applications migration solution.

Advertise With COBUG

Advertise on the COBUG website and reach tens of thousands of COBOL users. Increase your COBOL sales leads. Contact COBUG at advertise@cobug.com for advertising rates.
 

COBOL Forums

 
Acucorp [ return ]
From Message
graveyard

 Email

7/02/2008
02:35:50
Subject: Cobol and Functions


Message:
Hi,

I'm initialize in world of Cobol, and I would like some things about Cobol.

I have some experience in C, and I use frequent functions.

Cobol also have Functions?
Example in C:

int sum(int x, int y)
{
int z = x + y;
return z;
}

Is possible in Cobol?

Regards
//Graveyard



edwardw355

7/02/2008
15:40:13
RE: Cobol and Functions


Message:
Cobol has a set of prewritten "Intrinsic Functions".
See a manual (available online) for syntax. Or write separate mini programs and "CALL" them from your program. Use dynamic linkage.
CALL "MYFUNCTION" USING parm1 parm2 parm3 ...
The Intrinsic Functions (if they'll fit) are:
Part 7. Intrinsic functions
Intrinsic functions . . . . . . . . . . . . . . 414
Specifying a function . . . . . . . . . . . . . . . . 414
Function definitions . . . . . . . . . . . . . . . . 421
ACOS . . . . . . . . . . . . . . . . . . . . . . . . 425
ANNUITY . . . . . . . . . . . . . . . . . . . . . . 426
ASIN . . . . . . . . . . . . . . . . . . . . . . . . 427
ATAN . . . . . . . . . . . . . . . . . . . . . . . . 428
CHAR . . . . . . . . . . . . . . . . . . . . . . . . 429
COS . . . . . . . . . . . . . . . . . . . . . . . . . 430
CURRENT-DATE . . . . . . . . . . . . . . . . . . 431
DATE-OF-INTEGER . . . . . . . . . . . . . . . . 432
DATE-TO-YYYYMMDD . . . . . . . . . . . . . . 433
DATEVAL . . . . . . . . . . . . . . . . . . . . . . 434
DAY-OF-INTEGER . . . . . . . . . . . . . . . . . 436
DAY-TO-YYYYDDD . . . . . . . . . . . . . . . . 437
DISPLAY-OF . . . . . . . . . . . . . . . . . . . . 438
FACTORIAL . . . . . . . . . . . . . . . . . . . . 439
INTEGER . . . . . . . . . . . . . . . . . . . . . . 440
INTEGER-OF-DATE . . . . . . . . . . . . . . . . 441
INTEGER-OF-DAY . . . . . . . . . . . . . . . . . 442
INTEGER-PART . . . . . . . . . . . . . . . . . . 443
LENGTH . . . . . . . . . . . . . . . . . . . . . . 444
LOG . . . . . . . . . . . . . . . . . . . . . . . . . 445
LOG10 . . . . . . . . . . . . . . . . . . . . . . . . 446
LOWER-CASE . . . . . . . . . . . . . . . . . . . 447
MAX . . . . . . . . . . . . . . . . . . . . . . . . . 448
MEAN . . . . . . . . . . . . . . . . . . . . . . . . 449
MEDIAN . . . . . . . . . . . . . . . . . . . . . . 450
MIDRANGE . . . . . . . . . . . . . . . . . . . . 451
MIN . . . . . . . . . . . . . . . . . . . . . . . . . 452
MOD . . . . . . . . . . . . . . . . . . . . . . . . 453
NATIONAL-OF . . . . . . . . . . . . . . . . . . . 454
NUMVAL . . . . . . . . . . . . . . . . . . . . . . 455
NUMVAL-C . . . . . . . . . . . . . . . . . . . . 456
ORD . . . . . . . . . . . . . . . . . . . . . . . . . 458
ORD-MAX . . . . . . . . . . . . . . . . . . . . . 459
ORD-MIN . . . . . . . . . . . . . . . . . . . . . . 460
PRESENT-VALUE . . . . . . . . . . . . . . . . . 461
RANDOM . . . . . . . . . . . . . . . . . . . . . . 462
RANGE . . . . . . . . . . . . . . . . . . . . . . . 463
REM . . . . . . . . . . . . . . . . . . . . . . . . . 464
REVERSE . . . . . . . . . . . . . . . . . . . . . . 465
SIN . . . . . . . . . . . . . . . . . . . . . . . . . 466
SQRT . . . . . . . . . . . . . . . . . . . . . . . . 467
STANDARD-DEVIATION . . . . . . . . . . . . . 468
SUM . . . . . . . . . . . . . . . . . . . . . . . . . 469
TAN . . . . . . . . . . . . . . . . . . . . . . . . . 470
UNDATE . . . . . . . . . . . . . . . . . . . . . . 471
UPPER-CASE . . . . . . . . . . . . . . . . . . . . 472
VARIANCE . . . . . . . . . . . . . . . . . . . . . 473
WHEN-COMPILED . . . . . . . . . . . . . . . . 474
YEAR-TO-YYYY . . . . . . . . . . . . . . . . . . 475
YEARWINDOW . . . . . . . . . . . . . . . . . . 476



graveyard

7/03/2008
02:04:00
RE: Cobol and Functions


Message:
Hi,

Thanks for help, but I can't find the link of manual.
You can tell me what is the link?


Regards,
//Graveyard


donfnelson

7/04/2008
09:41:35
RE: Cobol and Functions


Message:
The 2002 COBOL standard includes user-defined functions.
Somewhat like you illustrated but more elegant. However, not
all implementations have them.


 
[ Go to Top of Page ]
COBOL Documentation, Application Mapping - EZ Legacy Ad
COBOL Documentation, Application Understanding - EvolveWare Ad
COBOL XML - RainCode Ad
COBOL Legacy CICS Mainframe Migration - MacKinney Systems Ad
Legacy COBOL Data Access - Connx Solutions Ad
COBOL Legacy Mainframe Migration - Transoft Ad
COBOL Documentation - Relativity Ad
COBOL Migration - Ateras Ad
COBOL, Modernization, Application - SeaSoft Ad
COBOL Software - Macro4 Ad
COBOL Data Access ODBC - Parkway Ad
COBOL Tools, Graphics - Flexus Ad
RM COBOL Compiler, Web Connectivity  - Liant Software Ad
COBOL Sort, COBOL Tools - CoSort Ad
Fujitsu COBOL Compiler, Legacy Mainframe Migration - Fujitsu netCOBOL Ad
COBOL XML - XMLThunder Ad
COBOL Code, Source Code - Source Recovery Company Ad





Call for Articles
COBOL Newsletters Articles are being sought for the COBUG newsletters.
Will you help us in our efforts to provide newsletters for the COBOL community at large? Contribute to the COBUG newsletters! Answer this call for COBOL and related legacy articles.

Local COBOL User Groups
COBOL User Group Check out the list of local COBOL user groups from around the world and join a user group near you.


Call for User Group Leaders!
COBOL User Groups Get Involved! We are looking for user group leaders to help organize and coordinate a local COBOL user group.

Join COBUG!
COBOL User Groups Become a part of the COBUG community today. Join Now ...


COBOL Forums
COBOL Forum Try our forums for help!
Let the COBUG members help you. Post your issues!



COBOL Jobs
COBOL Jobs Employers submit your COBOL job openings. Job seekers submit your resumes.

COBOL (c) Information Computing Services. All Rights Reserved. COBOL