MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Only LINK step (IEWL)

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
manojagrawal
Beginner


Joined: 25 Feb 2003
Posts: 124
Topics: 29

PostPosted: Tue Mar 16, 2004 10:48 am    Post subject: Only LINK step (IEWL) Reply with quote

Hello,

I need to Link a module to get the load. I have the object modules(The NCAL Library). I tried the following and it generated the load with the warnings as given below.

Code:
//LINKPROC PROC LKLBDSN='SYS1.PLIBASE'                               
//********************************************************************
//LKED     EXEC PGM=IEWL,PARM='XREF,LIST',REGION=512K                 
//SYSLIB   DD  DSN=&LKLBDSN,DISP=SHR                                 
//         DD  DSN=SYS1.SIBMBASE,DISP=SHR                             
//         DD  DSN=XXXXXXX.YYYYYY.NCAL,DISP=SHR                       
//         DD  DSN=XXXXXXX.DEV.NCAL,DISP=SHR                           
//         DD  DSN=IMSVS.II1H.IMS.RESLIB,DISP=SHR                     
//SYSLMOD  DD  DSN=XXXXX.MANOJ.LOCAL.LOAD(PROG1),DISP=(MOD,PASS),   
//             UNIT=SYSDA,SPACE=(1024,(50,20,1))                     
//SYSUT1   DD  DSN=&&SYSUT1,UNIT=SYSDA,SPACE=(1024,(200,20)),         
//             DCB=BLKSIZE=1024                                       
//SYSPRINT DD  SYSOUT=*                                               
//SYSLIN   DD  DSN=XXXXXXX.YYYYYY.NCAL(PROG1),DISP=SHR             
//SYSIN    DD  DUMMY


Code:
Warnings:
IEW2480W A711 EXTERNAL SYMBOL DSNHLI OF TYPE LD WAS ALREADY DEFINED AS A SYMBOL OF TYPE LD IN SECTION DFSLI000.
IEW2482W A712 THE ORIGINAL DEFINITION WAS IN A MODULE IDENTIFIED BY DDNAME SYSLIB.  THE DUPLICATE DEFINITION IS IN
         SECTION DSNELI  IN A MODULE IDENTIFIED BY DDNAME SYSLIB.             
IEW2480W A711 EXTERNAL SYMBOL DSNWLI OF TYPE LD WAS ALREADY DEFINED AS A SYMBOL OF TYPE LD IN SECTION DFSLI000.
IEW2482W A712 THE ORIGINAL DEFINITION WAS IN A MODULE IDENTIFIED BY DDNAME SYSLIB.  THE DUPLICATE DEFINITION IS IN
         SECTION DSNELI  IN A MODULE IDENTIFIED BY DDNAME SYSLIB.             
IEW2650I 5102 MODULE ENTRY NOT PROVIDED.  ENTRY DEFAULTS TO SECTION PLISTART. 


I got the folowing SYSPRINT Message when I ran it.

Code:
1                                                                     
 IBM536I  'ONCODE'=8096  SPECIFICATION EXCEPTION                       
    AT OFFSET +333BB191 IN PROCEDURE WITH ENTRY R001_LOCK_TABLES       
 ISE004 RCB0E3M  1 : PROGRAM ABNORMAL END; PGM=RCBDNBP  MOD=RCBDNBM   
 ISE005 RCB0E3M  3 : ROUTINE CALL IDENTIFICATION : #000               
 ISE006 RCB0E3M  3 : ROUTINE CALL PATH :                               
 ISE006 RCB0E3M  3 :  MOD=RCBDNBM                                     
1                                                                     
 IBM536I  'ONCODE'=8096  SPECIFICATION EXCEPTION                       
    AT OFFSET +333A2A69, INERR  ON-UNIT                               


I know it is something wrong with the Link. I am trying to do a individual link step. Any idea's where the problem lies? Any documentation on IEWL?
_________________
Thanks & Regards,
Manoj.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12366
Topics: 75
Location: San Jose

PostPosted: Tue Mar 16, 2004 11:03 am    Post subject: Reply with quote

Manoj,

Change the following statement in your JCL

Code:

//SYSIN    DD  DUMMY


to
Code:

//LKED.SYSIN     DD *
     ENTRY PROG1
//*


Check this link for Link-editing and running

Hope this helps...

Cheers

Kolusu
_________________
Kolusu - DFSORT Development Team (IBM)
DFSORT is on the Web at:
www.ibm.com/storage/dfsort

www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
manojagrawal
Beginner


Joined: 25 Feb 2003
Posts: 124
Topics: 29

PostPosted: Tue Mar 16, 2004 11:36 am    Post subject: Reply with quote

Hi Kolusu,

Thanks for your superfast response as usual. I did what you mentioned above, but am still getting the exact same Link warnings and Run abend. Any other ideas?Thanks!
_________________
Thanks & Regards,
Manoj.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12366
Topics: 75
Location: San Jose

PostPosted: Tue Mar 16, 2004 11:55 am    Post subject: Reply with quote

Manoj,

Try to run as shown below

Compile, prelink, link-edit, and run (IBMZCPLG)

Hope this helps...

Cheers

Kolusu
_________________
Kolusu - DFSORT Development Team (IBM)
DFSORT is on the Web at:
www.ibm.com/storage/dfsort

www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12366
Topics: 75
Location: San Jose

PostPosted: Tue Mar 16, 2004 1:36 pm    Post subject: Reply with quote

Manoj,

[code:1:5ca916b213]
The Linkage Editor

The linkage editor (PGM=IEWL) is used to create an executable load
module from an object deck. The linkage editor must be used to make
an executable copy of a compiled or assembled program. External
symbols in the object module(s), optional linkage editor control
statements, and linkage editor JCL parameters determine how the
finished load module is to be constructed.

NOTE: If your installation has DFSMS/MVS installed, the linkage
editor at your site is called the "binder" and is part of the MVS
Program Management Services component. The terms "binder" and
"linkage editor" can be used interchangeably when reading the
information below. The binder supports all of the functions of
the linkage editor, and also supports linking of "program objects"
and PDSE data sets. Program objects reside in PDSE data sets and
are page-mapped in virtual storage; many of the restrictions that
applied to the size of load modules do not apply to program
objects.

Sample JCL for the linkage editor appears below; following the JCL is
a discussion of each DD statement required by the linkage editor and
what each is used for. An explanation of linkage editor control
statements follows the JCL discussion, and linkage editor usage
examples appear at the end of this reference item.

Sample linkage editor JCL:

//JS10 EXEC PGM=IEWL,REGION=1024K,
// PARM='parms...' Parameters (optional)
//SYSPRINT DD SYSOUT=* Output Messages
//SYSTERM DD SYSOUT=* Output Messages (optional)
//SYSLIN DD DSN=...,DISP=SHR Input Object Module File
// DD DDNAME=SYSIN (Points to optional input)
//SYSLMOD DD DSN=...,DISP=SHR Output Load Module File
//SYSLIB DD DSN=...,DISP=SHR Optional 'Auto-call' Library
//anydd DD DSN=...,DISP=SHR Optional input library
//SYSUT1 DD UNIT=SYSDA,SPACE=(TRK,(30)) Required work file
//SYSIN DD * Control Statements (optional)
control statements...
/*

Explanation of Linkage Editor JCL:
EXEC: PGM=HEWL or LINKEDIT can also be specified.

PARM: The optional PARM field is used to pass different processing
options. Possible PARM= values are described below under control
statement descriptions. Possible PARM field options are listed
here.

For load module attributes:

AC=n - Sets authorization code (1 if APF authorized)
DC - Sets downward compatible attribute by forcing a
maximum output blocksize of 1024 bytes
SCTR - Indicates "scatter" load module format
NE - Sets "not editable" attribute - module can't
be relinked
OL - Sets "only loadable" attribute
OVLY - Sets "overlay" attribute
RENT - Sets "reentrant" attribute if all CSECTS are
marked reentrant
REUS - Sets "serially reusable" attribute if all CSECTS
are marked serially reusable
REFR - Sets "refreshable" attribute if all CSECTS are
marked refreshable
AMODE=31
_________________
Kolusu - DFSORT Development Team (IBM)
DFSORT is on the Web at:
www.ibm.com/storage/dfsort

www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
manojagrawal
Beginner


Joined: 25 Feb 2003
Posts: 124
Topics: 29

PostPosted: Wed Mar 17, 2004 10:51 pm    Post subject: Reply with quote

WOW! Thanks Kolusu. That was great.

Doing a complete compile and link together worked fine. That got me to run my stuff. However, This is not what is actually meant to be done (Thus its a workaround). I am still trying the link individually. I guess I am missing one of the options. I'll try that again.

Thanks again.
_________________
Thanks & Regards,
Manoj.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group