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

Executing Cobol pgm with subprogram in other loadlib


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
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
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: 2358
Location: Israel

PostPosted: Tue Aug 22, 2006 1:59 am
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
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
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
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: 2358
Location: Israel

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

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

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

Global Moderator


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

PostPosted: Tue Aug 22, 2006 11:45 pm
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
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
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
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: 2481
Location: Netherlands, Amstelveen

PostPosted: Mon Nov 29, 2010 4:54 pm
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
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: 6966
Location: porcelain throne

PostPosted: Mon Nov 29, 2010 5:34 pm
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 3
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
No new posts Generate random number from range of ... COBOL Programming 3
Search our Forums:

Back to Top