MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

calling a PL1 program from a COBOL program

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
hari prasad
Beginner


Joined: 20 Oct 2005
Posts: 4
Topics: 1

PostPosted: Thu Oct 20, 2005 2:29 am    Post subject: calling a PL1 program from a COBOL program Reply with quote

Hi,


I need to call a pl1 program from a cobol program.
I tried normal way of calling, But it ABENDs with code S0C1.

I tried searching in the forums but no post is having any conclusive information.

Any help or ideas.

Thanks.
Back to top
View user's profile Send private message
Cogito-Ergo-Sum
Advanced


Joined: 15 Dec 2002
Posts: 637
Topics: 43
Location: Bengaluru, INDIA

PostPosted: Thu Oct 20, 2005 3:20 am    Post subject: Reply with quote

WHAT abends with S0C1? The CALL statement? The PL/I program? The COBOL program?

You need to be more elaborate....
_________________
ALL opinions are welcome.

Debugging tip:
When you have eliminated all which is impossible, then whatever remains, however improbable, must be the truth.
-- Sherlock Holmes.
Back to top
View user's profile Send private message
hari prasad
Beginner


Joined: 20 Oct 2005
Posts: 4
Topics: 1

PostPosted: Thu Oct 20, 2005 3:55 am    Post subject: Reply with quote

I don't know exactly where it is ABENDing.

I given Display statements in COBOL program before calling PL1 program.
Those are getting displayed.

Only statements i have in PL1 code is PUT SKIP LISTs.
But none of them are getting displayed.

So Where it is abending ??????. no idea.

Code Looks like this.

Cobol main program.

Display msg.
Call subpgm.
Display msg.

PL1 sub program.

SUBPGM: proc();

put skip list('msg');

End SUBPGM;

any ideas
Back to top
View user's profile Send private message
hari prasad
Beginner


Joined: 20 Oct 2005
Posts: 4
Topics: 1

PostPosted: Thu Oct 20, 2005 3:56 am    Post subject: Reply with quote

I mean it is ABENDING in call statement. But i don't know why.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12377
Topics: 75
Location: San Jose

PostPosted: Thu Oct 20, 2005 4:25 am    Post subject: Reply with quote

hari prasad,

Please search before posting . check this link

http://www.mvsforums.com/helpboards/viewtopic.php?t=2821&highlight=pli+call

Hope this helps..

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
hari prasad
Beginner


Joined: 20 Oct 2005
Posts: 4
Topics: 1

PostPosted: Thu Oct 20, 2005 11:29 am    Post subject: Reply with quote

That helps a lot.

Thanks every one.
Back to top
View user's profile Send private message
whizkid79
Beginner


Joined: 29 Sep 2004
Posts: 53
Topics: 14

PostPosted: Thu Dec 22, 2005 3:40 pm    Post subject: Reply with quote

Hi,

I'm calling a PLI program from a COBOL program.
The COBOL pgm opens a file ABCD and passes that to the PLI pgm. The PLI pgm tries to write a record into the file, but the program abends. The length of the file/report is 133. The PLI pgm and its entry has OPTIONS(COBOL) defined in it.

Suppose A is the COBOL pgm and B is the PLI pgm. The entry copybook for B is defined as

B entry(FILE) OPTIONS (COBOL);

A passes the file as :

CALL 'B' USING ABCD

The error I get is a S04C protection exception.

Please help me out in resolving this issue.

Thanks,
Whizkid79.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
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