Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 8201
Location: Dubuque, Iowa, 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: 8201
Location: Dubuque, Iowa, 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: 2504
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 The same REXX program doesnt work for... jackzhang75 CLIST & REXX 5 Wed Dec 06, 2017 2:51 am
This topic is locked: you cannot edit posts or make replies. Cobol to fetch the content by using s... arunc55 COBOL Programming 4 Fri Nov 17, 2017 1:25 pm
No new posts Calling IKJEFT01 program from Rexx upendrasri CLIST & REXX 8 Wed Nov 15, 2017 4:27 pm
No new posts VBS and VB, COBOL syntax is the same ... natt.sut COBOL Programming 3 Sun Nov 12, 2017 6:36 am
No new posts COBOL - EXIT statement weird behavior anthony.pangestu COBOL Programming 0 Fri Oct 27, 2017 9:57 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us