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

Putting all Include statement in one member


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
mfjude

New User


Joined: 09 Jan 2006
Posts: 20

PostPosted: Tue Jan 10, 2006 2:27 pm
Reply with quote

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
View user's profile Send private message
nikyojin

New User


Joined: 05 Oct 2005
Posts: 94

PostPosted: Tue Jan 10, 2006 2:57 pm
Reply with quote

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
View user's profile Send private message
mfjude

New User


Joined: 09 Jan 2006
Posts: 20

PostPosted: Tue Jan 10, 2006 3:04 pm
Reply with quote

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
View user's profile Send private message
nikyojin

New User


Joined: 05 Oct 2005
Posts: 94

PostPosted: Tue Jan 10, 2006 4:04 pm
Reply with quote

Yes U can keep it as a member of the same library...
Back to top
View user's profile Send private message
mfjude

New User


Joined: 09 Jan 2006
Posts: 20

PostPosted: Tue Jan 10, 2006 4:16 pm
Reply with quote

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
View user's profile Send private message
mfjude

New User


Joined: 09 Jan 2006
Posts: 20

PostPosted: Wed Jan 11, 2006 11:43 am
Reply with quote

Pls help me with my problem.Still not solved.........
Back to top
View user's profile Send private message
sudhakarm

New User


Joined: 11 Jan 2006
Posts: 2
Location: kolkatta

PostPosted: Wed Jan 11, 2006 5:26 pm
Reply with quote

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
View user's profile Send private message
mfjude

New User


Joined: 09 Jan 2006
Posts: 20

PostPosted: Wed Jan 11, 2006 7:52 pm
Reply with quote

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
View user's profile Send private message
mfjude

New User


Joined: 09 Jan 2006
Posts: 20

PostPosted: Thu Jan 12, 2006 10:12 am
Reply with quote

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
View user's profile Send private message
sudhakarm

New User


Joined: 11 Jan 2006
Posts: 2
Location: kolkatta

PostPosted: Thu Jan 12, 2006 11:27 am
Reply with quote

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
View user's profile Send private message
mfjude

New User


Joined: 09 Jan 2006
Posts: 20

PostPosted: Thu Jan 12, 2006 2:17 pm
Reply with quote

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
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts How to copy the -1 version of a membe... TSO/ISPF 4
No new posts Searching for a member but don't know... TSO/ISPF 6
No new posts Looking For a PDS Member Without Open... PL/I & Assembler 10
No new posts JOIN STATEMENT PERFORMANCE. DFSORT/ICETOOL 12
Search our Forums:

Back to Top