IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to Call an external COBOL program from PL1


IBM Mainframe Forums -> PL/I & Assembler
Post new topic   Reply to topic
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
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: 8696
Location: Dubuque, Iowa, USA

PostPosted: Mon Feb 23, 2009 1:12 am
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
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: 3156
Location: Tucson AZ

PostPosted: Mon Feb 23, 2009 2:03 am
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: 8696
Location: Dubuque, Iowa, USA

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

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

Moderator Emeritus


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

PostPosted: Mon Feb 23, 2009 3:03 am
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: 2501
Location: Atlanta, Georgia, USA

PostPosted: Mon Feb 23, 2009 3:34 am
Reply with quote

Review this previous posting -

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
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);

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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> PL/I & Assembler

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts Using API Gateway from CICS program CICS 0
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
Search our Forums:

Back to Top