You are here:

Cobol/Help with cobol

Advertisement


Question
Hi, greatings from Costa Rica, I need help! How can I get the name of a program?

I need a function or something else to catch the PROGRAM-ID indicated in the source.

I need to use it in an argument for to call another program, but I don`t want to write it directly.

Can you help me? please!

Thanks a lot

Answer
I am not sure what you are asking.  See if this addresses what you need.
The PROGRAM-ID is specified in the PROGRAM-ID Statement.

If you need to pass it to another program you include the name as a literal in the CALL statement:
CALL 'program-xyz' using 'program-id value', parm-2, parm-3, etc.

David  

Cobol

All Answers


Answers by Expert:


Ask Experts

Volunteer


David Nelson

Expertise

I specialize in IBM z/OS COBOL and MicroFocus OCDS and Server Express non-OOP. Design, coding and performance oriented questions. Also linking to IBM Assembler from COBOL. Because the rules change with version, please state language level, version and platform environment. See CICS for questions about CICS.

Experience

Over 35 years working with COBOL on multiple platforms and OS.

Education/Credentials
Graduate, New York School of Computer Technology.

Past/Present Clients
Major Financial Institutions, State of NC (DHHS), Manufacturing, Financial services, Warehousing, Software developer and others.

©2016 About.com. All rights reserved.