View previous topic :: View next topic
|
Author |
Message |
mfjude
New User
Joined: 09 Jan 2006 Posts: 20
|
|
|
|
I am a fresher.I want to know whether we have to put all the include statements in just one member in the link library or they can be acroos multiple members.Pls provide me with a sample link memeber.
Sincere apologies if the problem is too trivial to be discussed in the forum. |
|
Back to top |
|
|
nikyojin
New User
Joined: 05 Oct 2005 Posts: 94
|
|
|
|
Hi Mfjude,
No problem is trivial.From trivial things great contests oft arise.
Please give a clear detailed explanation of ur problem.I ain't able to understand the problem and do remember to make use of the search facility provided prior to posting the queries.
Thanks,
Nikhil .S. |
|
Back to top |
|
|
mfjude
New User
Joined: 09 Jan 2006 Posts: 20
|
|
|
|
Hi Nikyojin,
I have a load module which i wanted to link with my program.I will have to use include "name" in my links library.Can I have it in some other member of the same library?
Thanks.... |
|
Back to top |
|
|
nikyojin
New User
Joined: 05 Oct 2005 Posts: 94
|
|
|
|
Yes U can keep it as a member of the same library... |
|
Back to top |
|
|
mfjude
New User
Joined: 09 Jan 2006 Posts: 20
|
|
|
|
I think u didn't get my prob.In my links library I have a member of the same name as my program.Now to call other subprograms whose load modules are stored somewhere else I have put include "called-program-name" in some other member of the same link library.Is this ok .One more thing do I need to copy the load modules of the called programs in my private load module library having my primary program.Pls reply soon. |
|
Back to top |
|
|
mfjude
New User
Joined: 09 Jan 2006 Posts: 20
|
|
|
|
Pls help me with my problem.Still not solved......... |
|
Back to top |
|
|
sudhakarm
New User
Joined: 11 Jan 2006 Posts: 2 Location: kolkatta
|
|
|
|
its based on your call,whether staticaly or dynamicaly,
for example
if you are using the static call ,you need to concatenate all the called programs load mudule to calling progrms loadmudule at the time of link edit.
i think that will satisfy ur question some what,or else let us know more clearly. |
|
Back to top |
|
|
mfjude
New User
Joined: 09 Jan 2006 Posts: 20
|
|
|
|
Thanx Sudhakarm,
In the compiler options I have given Nodynam i.e static call.In links member I am wrtiting "INCLUDE SYSLIB(called-pgm-name)".But the load module for the called-pgm is not present in my private load-module library.Do I have to put it in my private load module library or this is sufficient.Can u give me a sample links member b'coz I think the problem may be with my links member. |
|
Back to top |
|
|
mfjude
New User
Joined: 09 Jan 2006 Posts: 20
|
|
|
|
To add I amm using static calls in batch and I am linkediting the subprogram's compiled version in modlib and not its load module.Is this fine? |
|
Back to top |
|
|
sudhakarm
New User
Joined: 11 Jan 2006 Posts: 2 Location: kolkatta
|
|
|
|
COMPILING COBOL PROGRAM
//jobname JOB (acctno),name,MSGCLASS=1 (1)
//stepname EXEC PGM=IGYCRCTL,PARM=(options) (2)
//STEPLIB DD DSNAME=SYS1.COB2COMP,DISP=SHR (3)
//SYSLIN DD DSNAME=&SRCEIN,UNIT=SYSDA, (4) <-- OBJECT MODULE O/P
// DISP=(MOD,PASS),SPACE=(subparms)
//SYSPRINT DD SYSOUT=* (5)
//SYSIN DD DSNAME=dsname,UNIT=device, (6) <--- ATTENTION , HERE WE GIVE SOURCE PROGRAM
VOLUME=(subparms),DISP=SHR
LINK EDIT
//LKED EXEC PGM=IEWL,REGION=1024K,PARM=(options) (1)
//SYSPRINT DD SYSOUT=A (2)
//SYSLIB DD DSN=SYS1.COB2LIB,DISP=SHR (3)
// DD DSN=SYS1.COB2COMP,DISP=SHR
//SYSLMOD DD DSN=MYDOC.MYPROG.BLM(TESTTEMP), (4) <--- LOAD MODULE o/p
// DISP=SHR
//SYSTERM DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//SYSLIN DD DSN=&LOADSET,DISP=(OLD,DELETE) (5) <-- OBJECT MODULE i/p
//SYSIN DD DUMMY
note:
in that syslib you can concatenate the called programs load module as many you want.
RUN JCL
//ASD220X JOB (03SES,SSEA),'RUNJCL',CLASS=S,MSGCLASS=T,
// NOTIFY=&SYSUID
//STEP1 EXEC PGM=TESTTEMP <- LOAD MODULE name
//STEPLIB DD DSN=MYDOC.MYPROG.BLM,DISP=SHR <- Data set where LOAD MODULE resides
//SYSIN DD * <- Data passing to that program (optional)
0000002222
/*
//SYSOUT DD SYSOUT |
|
Back to top |
|
|
mfjude
New User
Joined: 09 Jan 2006 Posts: 20
|
|
|
|
I am getting the following error code while linking::::
IEW2456E-----SYMBOL CKTARGET UNRESOLVED. MEMBER COULD NOT BE INCLUDED FROM THE FROM THE DESIGNATED CALL LIBRARY. |
|
Back to top |
|
|
|