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
 

 

Executing Cobol pgm with subprogram in other loadlib

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
View previous topic :: :: View next topic  
Author Message
rlavoie

New User


Joined: 10 Feb 2006
Posts: 5

PostPosted: Tue Aug 22, 2006 1:45 am    Post subject: Executing Cobol pgm with subprogram in other loadlib
Reply with quote

Hi ALL,
I'm trying to execute a Cobol pgm in one loadlib but the Cobol
program calls a subprogram from another loadlib. Is there
something like a steplib function on the CALL command?
I get an 806 module not found.

CALL 'XXXX.TEST.LOADLIB(PGM12345)' -
'&DBRT,&MBRSTR&SDATE&STIME'

rc
Back to top
View user's profile Send private message

ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Tue Aug 22, 2006 1:59 am    Post subject:
Reply with quote

You may try LIBDEF ISPLLIB.

O.
Back to top
View user's profile Send private message
shreevamsi

Active User


Joined: 23 Feb 2006
Posts: 305
Location: Hyderabad,India

PostPosted: Tue Aug 22, 2006 11:34 am    Post subject:
Reply with quote

hi rlavoie,

Y Don't you concatinate both the loadlibs of Called and Calling programs in the JCL??

~Vamsi
Back to top
View user's profile Send private message
rlavoie

New User


Joined: 10 Feb 2006
Posts: 5

PostPosted: Tue Aug 22, 2006 5:48 pm    Post subject:
Reply with quote

Vamsi,
There is no JCL involved. I'm using the CALL instruction
within a CLIST.
Back to top
View user's profile Send private message
Mickeydusaor

Active User


Joined: 24 May 2006
Posts: 258
Location: Salem, Oregon

PostPosted: Tue Aug 22, 2006 7:52 pm    Post subject:
Reply with quote

Just before the call statement allocate the other Dataset where the other program resides.

alloc da('other.dataset') shr reuse

call 'xxxx.what.ever(program)' 'parm data'
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Tue Aug 22, 2006 9:59 pm    Post subject:
Reply with quote

Allocate the other dataset.... to what DDNAME?

O.
Back to top
View user's profile Send private message
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4649
Location: Raleigh, NC, USA

PostPosted: Tue Aug 22, 2006 11:45 pm    Post subject: Re: Executing Cobol pgm with subprogram in other loadlib
Reply with quote

I remember reading a similar topic on another Forum a while back. If I recall, it ended up that there is no way to accomplish what you want, other than to either:

a. run the programs from standard linklisted libraries or
b. put them in the same loadlib.
Back to top
View user's profile Send private message
rlavoie

New User


Joined: 10 Feb 2006
Posts: 5

PostPosted: Wed Aug 23, 2006 8:00 pm    Post subject:
Reply with quote

Thanks. The LIBDEF ISPLLIB worked fine.
Just a little more detail if you are interested:
I was trying to use a clist to call a native call DATACOM
COBOL program in our test environment passing clist
parameters to the program using linkage and using an
external URT also in test environment (but different loadlibs)
at the same time and have my program also access
dynamically linked production subprograms.

ISPEXEC LIBDEF ISPLLIB DATASET ID( -
'xxxx1.URT.LOAD' 'xxxx2.HOME.LOAD' 'xxxx3.BASE.LOAD' -
'xxxx.TEST.LOADLIB' 'xxxx.PROD.LOADLIB')

CALL 'xxxx.TEST.LOADLIB(PGM12345)' -
'DBURT=URT12345 PDATA=A,Y,N,45458 '
Back to top
View user's profile Send private message
rlavoie

New User


Joined: 10 Feb 2006
Posts: 5

PostPosted: Thu Aug 24, 2006 9:48 pm    Post subject:
Reply with quote

Moderator,
I'm curious as to why my post was moved from
Clist/Rexx to the TSO section? What was the trigger
that I should have noticed to go to TSO instead?
I would like to know for future reference to minimize
your maintenance of my posts.
Thanks.
Back to top
View user's profile Send private message
karthik.ilangovan

New User


Joined: 05 Dec 2006
Posts: 27
Location: India

PostPosted: Mon Nov 29, 2010 4:12 pm    Post subject:
Reply with quote

Your CALL (within CLIST) is nothing but a TSO Command..

Thanks,
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2435
Location: Netherlands, Amstelveen

PostPosted: Mon Nov 29, 2010 4:54 pm    Post subject:
Reply with quote

And that will help on a 4 year old topic?
Back to top
View user's profile Send private message
karthik.ilangovan

New User


Joined: 05 Dec 2006
Posts: 27
Location: India

PostPosted: Mon Nov 29, 2010 5:30 pm    Post subject:
Reply with quote

I hope so - Won't it.. Atleast to the People who are browing through the various Posts and might wish to know how something ended :-)
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6968
Location: porcelain throne

PostPosted: Mon Nov 29, 2010 5:34 pm    Post subject:
Reply with quote

and of course his post count will also increase.
Back to top
View user's profile Send private message
karthik.ilangovan

New User


Joined: 05 Dec 2006
Posts: 27
Location: India

PostPosted: Mon Nov 29, 2010 5:38 pm    Post subject:
Reply with quote

I surely Hope that increasing the Post-Count is not the First-Priority.
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 -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Could we identify the called modules ... elixir1986 COBOL Programming 5 Fri Jul 14, 2017 1:53 am
No new posts XML Parse for COBOL 5.2 Bhanu Praveen COBOL Programming 1 Sat Jul 08, 2017 8:58 pm
No new posts Dynamic output file creation in cobol... smileheal COBOL Programming 7 Thu Jun 15, 2017 10:53 pm
No new posts Search utility(3.14) using JCl and Cobol RKS3 COBOL Programming 12 Sat Jun 10, 2017 10:24 pm
No new posts COBOL DB2 program - zIIP eligible vasanthz COBOL Programming 7 Wed May 31, 2017 5:12 am


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