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: 7988
Location: Bellevue, IA

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: 7988
Location: Bellevue, IA

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 SQL query not working in Cobol program. CuriousMainframer COBOL Programming 14 Wed Feb 22, 2017 5:56 pm
No new posts Execute TSO ACF commands from COBOL-I... supreethi.srid TSO/ISPF 0 Tue Feb 21, 2017 5:19 pm
No new posts Mainframe Interview Questions CICS,CO... akshathan Mainframe Interview Questions 6 Thu Feb 09, 2017 6:38 pm
No new posts Submit job from Cobol with input data abdulrafi COBOL Programming 4 Wed Feb 01, 2017 12:41 pm
This topic is locked: you cannot edit posts or make replies. COBOL Software Development Lead at Fi... shally Mainframe Jobs 0 Fri Jan 20, 2017 5:21 am


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