|
|
| 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 |
|
 |
References
|
|
 |
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 1973 Location: Israel
|
|
|
|
You may try LIBDEF ISPLLIB.
O. |
|
| Back to top |
|
 |
shreevamsi
Senior Member
Joined: 23 Feb 2006 Posts: 320 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: 126
|
|
|
|
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: 1973 Location: Israel
|
|
|
|
Allocate the other dataset.... to what DDNAME?
O. |
|
| Back to top |
|
 |
superk
Moderator Team Head
Joined: 26 Apr 2004 Posts: 3314 Location: Charlotte,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 |
|
 |
|
|