MVSFORUMS.com
A Community of and for MVS Professionals
FAQ
Search
Quick Manuals
Register
Profile
Log in to check your private messages
Log in
nested cobol program
MVSFORUMS.com Forum Index
->
Application Programming
View previous topic
::
View next topic
Author
Message
butta_mvs
Beginner
Joined: 17 Aug 2003
Posts: 22
Topics: 18
Posted: Thu Dec 18, 2003 6:54 am
Post subject: nested cobol program
How to compile a nested cobol program
Ramesh
Back to top
kolusu
Site Admin
Joined: 26 Nov 2002
Posts: 12369
Topics: 75
Location: San Jose
Posted: Thu Dec 18, 2003 7:06 am
Post subject:
butta_mvs
,
You need to have an END PROGRAM pgmname separating the pgms.ex:
Code:
IDENTIFICATION DIVISION.
PROGRAM-ID. MAINPGM
DATE-COMPILED.
ENVIRONMENT DIVISION.
CONFIGURATION SECTION.
INPUT-OUTPUT SECTION.
FILE-CONTROL.
DATA DIVISION.
FILE SECTION.
WORKING-STORAGE SECTION.
PROCEDURE DIVISION.
GOBACK.
END PROGRAM MAINPGM.
IDENTIFICATION DIVISION.
PROGRAM-ID. PGM2
...
END PROGRAM PGM2.
IDENTIFICATION DIVISION.
PROGRAM-ID. PGM3
...
END PROGRAM PGM3.
now compile this as one single program
You can learn more about nested programs here
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/IGY3PG10/4.1.3.6.1?DT=20020923143836#HDRHDRNEST
Here is an example to show nested programs
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/IGY3PG10/4.1.3.6.2?DT=20020923143836#HDRDUP1857
Hope this helps...
cheers
kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
Display posts from previous:
All Posts
1 Day
7 Days
2 Weeks
1 Month
3 Months
6 Months
1 Year
Oldest First
Newest First
MVSFORUMS.com Forum Index
->
Application Programming
All times are GMT - 5 Hours
Page
1
of
1
Jump to:
Select a forum
Announcements
----------------
MVSFORUMS - Announcements
Help Boards
----------------
Application Programming
Database
Utilities
Job Control Language(JCL)
CICS and Middleware
IMS
TSO and ISPF
Data Management
Problem Determination
Mainframe Challenge
About Mvsforums
Other Technical Topics
Related Non-Technical Topics
Interview Q & A
General
----------------
Tools and Downloads
IT News
Technical FAQ (Tips)
----------------
Programming Languages
DB2/IMS
JCL/SORT
TSO and ISPF
You
cannot
post new topics in this forum
You
cannot
reply to topics in this forum
You
cannot
edit your posts in this forum
You
cannot
delete your posts in this forum
You
cannot
vote in polls in this forum
MVSFORUMS
Powered by
phpBB
© 2001, 2005 phpBB Group