Page 1 of 3

Static Link Error for BPXWDYN - SYMBOL BPXWDYN UNRESOLVED

PostPosted: Thu Jun 14, 2012 12:31 am
by hienrbc
Hi there,
I have a cobol program that calling BPXWDYN (using static link) to allocate the files BUT got an error on the link step that member not found even though I have the member & library included.

IEW2456E 9207 SYMBOL BPXWDYN UNRESOLVED. MEMBER COULD NOT BE INCLUDED FROM THE DESIGNATED CALL LIBRARY.

member in linklist: INCLUDE LNKLIB(BPXWDYN)
library: //LKED.LNKLIB DD DSN=SYS1.LINKLIB,DISP=SHR

Can you please help? Thanks. Hien

Re: Static Link Error for BPXWDYN - SYMBOL BPXWDYN UNRESOLVE

PostPosted: Thu Jun 14, 2012 1:08 am
by Akatsukami
This says that BPXWDYN is not in SYS1.LINKLIB. I fear that you have no choice but to beard your shop's sysprogs and ask them what happened.

Re: Static Link Error for BPXWDYN - SYMBOL BPXWDYN UNRESOLVE

PostPosted: Thu Jun 14, 2012 1:18 am
by Robert Sample
WHY would you feel the need to statically link a module in SYS1.LINKLIB?

Re: Static Link Error for BPXWDYN - SYMBOL BPXWDYN UNRESOLVE

PostPosted: Thu Jun 14, 2012 1:44 am
by dick scherrer
Hello and welcome to the forum,

So far, i have not seen a system that permitted developers to put things in sys1.linklib . . . I don't recall using sys1.linklib for compiling/linking at all :?

Are you using the standard compile/link jcl for that environment?

Re: Static Link Error for BPXWDYN - SYMBOL BPXWDYN UNRESOLVE

PostPosted: Thu Jun 14, 2012 1:52 am
by hienrbc
I am not put in sys1.linklib, I want to pickup the BPXWDYN from sys1.linklib.
I am using the company standard compile/link.
thanks.

Re: Static Link Error for BPXWDYN - SYMBOL BPXWDYN UNRESOLVE

PostPosted: Thu Jun 14, 2012 8:36 am
by dick scherrer
Hello,

I am not put in sys1.linklib,
Good to hear - we were concerned ;)

Suggest you ask the system programmers (or whoever supports BPXWDYN) which load library has this.

Re: Static Link Error for BPXWDYN - SYMBOL BPXWDYN UNRESOLVE

PostPosted: Thu Jun 14, 2012 6:26 pm
by hienrbc
Hi, I am the only one who used this IBM utility. I need to find out the IBM group at the company, maybe they can help.
Thanks.

Re: Static Link Error for BPXWDYN - SYMBOL BPXWDYN UNRESOLVE

PostPosted: Thu Jun 14, 2012 7:57 pm
by dick scherrer
Hello,

I just looked and this module IS in sys1.linklib on the system i'm logged on today.

Has this ever been successfully invoked on your system?

Talking with the "IBM group" is probably the best course of action for you.

Re: Static Link Error for BPXWDYN - SYMBOL BPXWDYN UNRESOLVE

PostPosted: Thu Jun 14, 2012 8:16 pm
by Robert Sample
I just tested my existing BPXWDYN program with a static link. The linkage editor / binder included the module from SYS1.LINKLIB and executed the same as without including the module. There's no reason to statically link it -- and good reasons not to -- but if you're trying to do so and it's not working, the problem is with your JCL or linkage editor / binder statements, not with the system.

If you want further assistance, I think you need to post your compile / link JCL -- USING CODE TAG TO PRESERVE SPACING -- for our review.

Re: Static Link Error for BPXWDYN - SYMBOL BPXWDYN UNRESOLVE

PostPosted: Thu Jun 14, 2012 10:59 pm
by hienrbc
Thanks. Your static call is CALL 'BPXWDYN' USING.... and have no problem, so it must be my link jcl BUT I don't see anythinkg missing.
1) Here is my link output with SYS1.LINKLIB:
XXLKED   EXEC  PGM=HEWL,                                             
XX PARM=(RENT,LIST,XREF,MAP,                                         
XX '&LPARM,COMPAT=LKED'),                                             
XX TIME=&TLKED                                                       
IEFC653I SUBSTITUTION JCL - PGM=HEWL,PARM=(RENT,LIST,XREF,MAP,'RENT,MA
XXSYSLIN   DD  DDNAME=SYSIN                                           
XXSYSLMOD  DD  DSNAME=&LIBRARY(&NAME),DISP=SHR                       
IEFC653I SUBSTITUTION JCL - DSNAME=BB1643.DAAB.P20.LOADLIB(LAAMDDS1),D
XXLKED.SYSLIB   DD                                                   
X/SYSLIB   DD  DSN=&COBLIB,DISP=SHR                                   
IEFC653I SUBSTITUTION JCL - DSN=SYS1.SCEELKED,DISP=SHR               
XX              DD                                                   
X/         DD  DSN=&AUTOLIB,DISP=SHR                                 
IEFC653I SUBSTITUTION JCL - DSN=PROD.AUTOLIB,DISP=SHR                 
XX              DD DSN=SYS1.LINKLIB,DISP=SHR                         
XX              DD DSN=&SOBJLIB,DISP=SHR                             
IEFC653I SUBSTITUTION JCL - DSN=BB1643.DAAB.P20.OBJLIB,DISP=SHR       
XX              DD DSN=PS.D9F.CSF.RESLIB,DISP=SHR                 


2) and my link card o/p:
IEW2322I 1220  1       INCLUDE SYSLIB(BPXWDYN)               
IEW2322I 1220  2       INCLUDE HXFLIB(L9NAPI1)               
IEW2322I 1220  5       INCLUDE SYSLIB(DATERTN)                                 
IEW2322I 1220  6       INCLUDE SYSLIB(RBINFO)                                   
IEW2322I 1220  7       INCLUDE SYSLIB(LAACPKGS)                                 
IEW2322I 1220  8       INCLUDE SYSLIB(LAABDAYS)                                 
IEW2322I 1220  9       INCLUDE SYSLIB(LAAICPR1)                                 
IEW2322I 1220  10       INCLUDE SYSLIB(LAAIJCR1)                               
IEW2322I 1220  11       INCLUDE SYSLIB(LAAISPR1)                               
IEW2322I 1220  12       INCLUDE SYSLIB(LAAISTI1)                               
IEW2322I 1220  13       INCLUDE SYSLIB(LAAISTU1)                               
IEW2322I 1220  14       INCLUDE SYSLIB(LAAMDDS1)                               
IEW2322I 1220  15       ENTRY L9NAPI1                                           
IEW2322I 1220  16    SETSSI F1216682                                           
IEW2322I 1220  17       NAME LAAMDDS1(R)                                       
IEW2459W 9206 INCLUDED MEMBER BPXWDYN FAILED TO RESOLVE REFERENCE.             
IEW2497W 9229 THE SYMBOL BPXWDYN WAS EXPECTED TO BE RESOLVED BY INCLUDING MEMBER
         DDNAME SYSLIB                                                         
IEW2456E 9207 SYMBOL DSNTIAR UNRESOLVED.  MEMBER COULD NOT BE INCLUDED FROM THE
IEW2456E 9207 SYMBOL DSNHADDR UNRESOLVED.  MEMBER COULD NOT BE INCLUDED FROM THE
IEW2456E 9207 SYMBOL DSNHADD2 UNRESOLVED.  MEMBER COULD NOT BE INCLUDED FROM THE
IEW2467E 9224 SYMBOL BPXWDYN REMAINS UNRESOLVED.     

3) If I do not code the INCLUDE (PBXWDYN) statement then ONLY 1 error below:
IEW2456E 9207 SYMBOL BPXWDYN UNRESOLVED. MEMBER COULD NOT BE INCLUDED FROM THE

Thanks.