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 

Static call with PDS and PDS-E dataset

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


Joined: 12 Dec 2006
Posts: 16
Topics: 9

PostPosted: Sun Apr 01, 2007 10:22 pm    Post subject: Static call with PDS and PDS-E dataset Reply with quote

Hello,

( 1) Cobol pgm A (load in PDS dataset) statically calling Cobol pgm B (load in PDS-E dataset). Compilation went thru. However, it abended during execution with OC1.
( 2) My question, it is right to have load in PDS dataset statically called another load in PDS-E dataset?
If able to, it is documented somewhere? What could be the possible cause of error above?
( 3) Pls advise urgently. Thank you.

.Hoe San.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


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

PostPosted: Mon Apr 02, 2007 5:49 am    Post subject: Reply with quote

bay hoe san,

I don't think PDS & PDS-E dataset has got anything to do with the abend. What are the DCB parameters of the datasets involved. Also remember when you are URGENT help make sure that you provide enough information. Post all the error messages so that we can help you.

Kolusu

PS: Avoid putting "urgent" in your topics.
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
dbzTHEdinosauer
Supermod


Joined: 20 Oct 2006
Posts: 1411
Topics: 26
Location: germany

PostPosted: Mon Apr 02, 2007 7:13 am    Post subject: Reply with quote

bay hoe san,

you did not mention the link-edit step. did that also have an ok completion?

If you are making a static call (and not dynamic) then PGM B's load object is already part of your PGM-A executable after the link - if you linked. What is the output of the link-edit? Does it include PGM-B? If not, you are dynamically calling.

Though IBM provides this little disclaimer in the Z/OS Intro:
Quote:

PDSE data sets can be used in place of nearly all PDS data sets that are used to store data. But the PDSE format is not intended as a PDS replacement. When a PDSE is used to store load modules, it stores them in structures called program objects.


I have not yet found anything to suppose that (as Kolusu said) PDS and PDS-E is the problem.
_________________
Dick Brenholtz
American living in Varel, Germany
Back to top
View user's profile Send private message
dbzTHEdinosauer
Supermod


Joined: 20 Oct 2006
Posts: 1411
Topics: 26
Location: germany

PostPosted: Mon Apr 02, 2007 11:09 am    Post subject: Reply with quote

Here is a link to redbooks covering PDSE's

http://www.redbooks.ibm.com/redbooks/pdfs/sg246106.pdf

or a direct link

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/DGT2D410/3.8?DT=20020122112221

i doubt if you can link the load module and the load object. also, i don't think the environment addressed by the invocation of pgm-a is a suitable environment for pgm-b to execute, when it is called.
_________________
Dick Brenholtz
American living in Varel, Germany
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