Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

How to Call an external COBOL program from PL1

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler
View previous topic :: :: View next topic  
Author Message
maniesh

New User


Joined: 23 Feb 2009
Posts: 2
Location: hyderabad,india

PostPosted: Mon Feb 23, 2009 1:07 am    Post subject: How to Call an external COBOL program from PL1
Reply with quote

Hi,

I'm new to coding in PL1, could anyone clarify me on this.

I'm trying to call a COBOL program from a PL1 program. While doing so i need to pass a 12 byte value from PL1 to COBOL, process the 12 byte input and create an output that needs to be returned to the PL/I program. My understanding is that we can call a program in PL1 same as in COBOL, but i'm not sure as to how to call an external program in PL1.

I found out that we need to declare an external routine before calling it.

Please let me know:

1) How to declare the routine in PL1 with passing parameters?
2) Where to place the declaration of the Routine?
3) Where can I find more details about "Fetch/Call external routine" usage?

Your timely reply will be greatly appreciated.

Maniesh icon_smile.gif
Back to top
View user's profile Send private message

Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8117
Location: East Dubuque, Illinois, USA

PostPosted: Mon Feb 23, 2009 1:12 am    Post subject:
Reply with quote

Manuals link at the top of the page, look at the PL/I Language Reference and Programming Guide.
Back to top
View user's profile Send private message
maniesh

New User


Joined: 23 Feb 2009
Posts: 2
Location: hyderabad,india

PostPosted: Mon Feb 23, 2009 1:23 am    Post subject:
Reply with quote

Hi Robert,

I'm unable to find the link, wud it be possible for you to guide me to the link.
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3158
Location: Tucson AZ

PostPosted: Mon Feb 23, 2009 2:03 am    Post subject:
Reply with quote

Quote:
Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8117
Location: East Dubuque, Illinois, USA

PostPosted: Mon Feb 23, 2009 2:46 am    Post subject:
Reply with quote

http://www.ibmmainframes.com/manuals.php
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Mon Feb 23, 2009 3:03 am    Post subject:
Reply with quote

Hello,

The list of links W.T. posted are at the very top of the web page (above the blue forum selections line). . .
Back to top
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2502
Location: Atlanta, Georgia, USA

PostPosted: Mon Feb 23, 2009 3:34 am    Post subject: Reply to: How to Call an external COBOL program form PL1
Reply with quote

Review this previous posting -

http://ibmmainframes.com/viewtopic.php?p=126953&highlight=#126953

Bill
Back to top
View user's profile Send private message
nehrujee

New User


Joined: 25 Oct 2007
Posts: 8
Location: Kolkata

PostPosted: Mon Feb 23, 2009 9:09 pm    Post subject: Reply to: How to Call an external COBOL program from PL1
Reply with quote

Declare and call the cobol pgm as below in Pl1 module;

DCL CBLPGM ENTRY OPTIONS(COBOL INTER);

DCL 1 CBLCPY AUTO,
5 var1 .....;

call CBLPGM (CBLCPY);

http://publib.boulder.ibm.com/infocenter/pdthelp/v1r1/index.jsp?topic=/com.ibm.debugtool.doc_9.1/eqa9ug01497.htm
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts XML Parse for COBOL 5.2 Bhanu Praveen COBOL Programming 1 Sat Jul 08, 2017 8:58 pm
No new posts Writing a file using online program grvtomar PL/I & Assembler 3 Fri Jun 30, 2017 1:06 pm
No new posts pre-compiler for program in an HFS Pedro DB2 0 Fri Jun 23, 2017 11:13 pm
No new posts Dynamic output file creation in cobol... smileheal COBOL Programming 7 Thu Jun 15, 2017 10:53 pm
No new posts Search utility(3.14) using JCl and Cobol RKS3 COBOL Programming 12 Sat Jun 10, 2017 10:24 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us