View previous topic :: View next topic
|
Author |
Message |
rlavoie
New User
Joined: 10 Feb 2006 Posts: 5
|
|
|
|
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 |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
You may try LIBDEF ISPLLIB.
O. |
|
Back to top |
|
|
shreevamsi
Active User
Joined: 23 Feb 2006 Posts: 305 Location: Hyderabad,India
|
|
|
|
hi rlavoie,
Y Don't you concatinate both the loadlibs of Called and Calling programs in the JCL??
~Vamsi |
|
Back to top |
|
|
rlavoie
New User
Joined: 10 Feb 2006 Posts: 5
|
|
|
|
Vamsi,
There is no JCL involved. I'm using the CALL instruction
within a CLIST. |
|
Back to top |
|
|
Mickeydusaor
Active User
Joined: 24 May 2006 Posts: 258 Location: Salem, Oregon
|
|
|
|
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 |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
Allocate the other dataset.... to what DDNAME?
O. |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
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 |
|
|
rlavoie
New User
Joined: 10 Feb 2006 Posts: 5
|
|
|
|
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 |
|
|
rlavoie
New User
Joined: 10 Feb 2006 Posts: 5
|
|
|
|
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 |
|
|
karthik.ilangovan
New User
Joined: 05 Dec 2006 Posts: 27 Location: India
|
|
|
|
Your CALL (within CLIST) is nothing but a TSO Command..
Thanks, |
|
Back to top |
|
|
PeterHolland
Global Moderator
Joined: 27 Oct 2009 Posts: 2481 Location: Netherlands, Amstelveen
|
|
|
|
And that will help on a 4 year old topic? |
|
Back to top |
|
|
karthik.ilangovan
New User
Joined: 05 Dec 2006 Posts: 27 Location: India
|
|
|
|
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 |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
and of course his post count will also increase. |
|
Back to top |
|
|
karthik.ilangovan
New User
Joined: 05 Dec 2006 Posts: 27 Location: India
|
|
|
|
I surely Hope that increasing the Post-Count is not the First-Priority. |
|
Back to top |
|
|
|