Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Unresolved symbold during linkedit of a new locale

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
View previous topic :: :: View next topic  
Author Message
kamran

New User


Joined: 01 May 2005
Posts: 55

PostPosted: Mon Nov 01, 2010 11:53 pm    Post subject: Unresolved symbold during linkedit of a new locale
Reply with quote

Dear all,
I wonder if here is suitable place for this question.
anyhow I followed the path witch someone should follow to define a new locale within the zos as described in C++ user's guide.
In the C++ programming language guide and the C++ user's guide (zos version) it has been described needed steps to add a new locate to the language environmment run time library but as I follwed it in one step which the source file must be compiled by "LOCALDEF" in TSO environment and "EDCLDEF" or "EDCXLDEF" in batch environment, I got "UNDEFINED SYMBOLS" error.
apparently I must include some object or load modules to resolve the dependencies.unfortunately I didn't find any place in internet who someone talk about the same issue.
the unresolved sysbols was many including "LOCALE@" ... which I will list it in the next post if needed.
Also the IBM supplied defaults locale modules has got some extra csects including "CEEMAIN" which my compiled locale does not includes.

thank you all
Back to top
View user's profile Send private message

dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6967
Location: porcelain throne

PostPosted: Tue Nov 02, 2010 12:23 am    Post subject:
Reply with quote

under C++ in the IBM z/os V1R10 library,
there is a references to z/OS V1R10.0 XL C/C++ Run-Time Library Reference
which may provide help/guidance.
Back to top
View user's profile Send private message
kamran

New User


Joined: 01 May 2005
Posts: 55

PostPosted: Tue Nov 02, 2010 11:04 am    Post subject:
Reply with quote

dbzTHEdinosauer wrote:
under C++ in the IBM z/os V1R10 library,
there is a references to z/OS V1R10.0 XL C/C++ Run-Time Library Reference
which may provide help/guidance.


Thanks for reply,
Maybe I have explained wrong.In chapter 48 of z/OS C/C++ Programming guide on page 723 and 724 there is two jobs one for compile of the run time locale name table to reflect the new added locale at run time which I didn't have any problem with that and another job e.g for compile of non-XPLINK version of the new locale like bellow

Code:

 000001 //TSU08GNX   JOB    MSGCLASS=T,NOTIFY=&SYSUID
 000002 //PROCLIB    JCLLIB ORDER=CBC.SCBCPRC
 000003 //GENLOCNX   EXEC   PROC=EDCLDEF,
 000004 //           INFILE='TSU08.LOCALE.SOURCE(TEXAN)',
 000005 //           OUTFILE='TSU08.LOCALE.LOAD(EDC$1TEY),DISP=SHR',
 000006 //           LPARM='AMODE=31,MAP,RENT,REUS,REFR',
 000007 //           LOPT='CHARMAP(IBM-1047)'

in the above example new locale which is named TEXAN is created by IBM Default locale source EDC$EUEY.by the way the above job finished by return code of 8 and output bellow for linker:
Code:

z/OS V1 R3 BINDER     08:32:24 TUESDAY NOVEMBER  2, 2010
BATCH EMULATOR  JOB(TSU08GNX) STEP(GENLOCNX) PGM= HEWL      PROCEDURE(LKED    )
IEW2278I B352 INVOCATION PARAMETERS - AMODE=31,AMODE=31,MAP,RENT,REUS,REFR

IEW2322I 1220  1    ENTRY INSTANTI
IEW2456E 9207 SYMBOL LOCALE@I UNRESOLVED.  MEMBER COULD NOT BE INCLUDED FROM THE
IEW2456E 9207 SYMBOL @@LOCALE UNRESOLVED.  MEMBER COULD NOT BE INCLUDED FROM THE
IEW2456E 9207 SYMBOL @@NL@LAN UNRESOLVED.  MEMBER COULD NOT BE INCLUDED FROM THE
IEW2456E 9207 SYMBOL SYNTAX@I UNRESOLVED.  MEMBER COULD NOT BE INCLUDED FROM THE
IEW2456E 9207 SYMBOL RESP@INI UNRESOLVED.  MEMBER COULD NOT BE INCLUDED FROM THE
IEW2456E 9207 SYMBOL @@RPMATC UNRESOLVED.  MEMBER COULD NOT BE INCLUDED FROM THE
IEW2456E 9207 SYMBOL @@LOCALD UNRESOLVED.  MEMBER COULD NOT BE INCLUDED FROM THE
IEW2456E 9207 SYMBOL TIME@INI UNRESOLVED.  MEMBER COULD NOT BE INCLUDED FROM THE
IEW2456E 9207 SYMBOL @@WCSFTI UNRESOLVED.  MEMBER COULD NOT BE INCLUDED FROM THE
IEW2456E 9207 SYMBOL @@STRPTI UNRESOLVED.  MEMBER COULD NOT BE INCLUDED FROM THE
IEW2456E 9207 SYMBOL @@STRFTI UNRESOLVED.  MEMBER COULD NOT BE INCLUDED FROM THE
IEW2456E 9207 SYMBOL NUMERIC@ UNRESOLVED.  MEMBER COULD NOT BE INCLUDED FROM THE
IEW2456E 9207 SYMBOL MONETARY UNRESOLVED.  MEMBER COULD NOT BE INCLUDED FROM THE
IEW2456E 9207 SYMBOL @@STRFMO UNRESOLVED.  MEMBER COULD NOT BE INCLUDED FROM THE
IEW2456E 9207 SYMBOL COLLATE@ UNRESOLVED.  MEMBER COULD NOT BE INCLUDED FROM THE
IEW2456E 9207 SYMBOL @@REGCOM UNRESOLVED.  MEMBER COULD NOT BE INCLUDED FROM THE
IEW2456E 9207 SYMBOL @@FNMATC UNRESOLVED.  MEMBER COULD NOT BE INCLUDED FROM THE
IEW2456E 9207 SYMBOL @@WCSXFR UNRESOLVED.  MEMBER COULD NOT BE INCLUDED FROM THE
IEW2456E 9207 SYMBOL @@WCSCOL UNRESOLVED.  MEMBER COULD NOT BE INCLUDED FROM THE
IEW2456E 9207 SYMBOL @@STRXFR UNRESOLVED.  MEMBER COULD NOT BE INCLUDED FROM THE
IEW2456E 9207 SYMBOL CTYPE@IN UNRESOLVED.  MEMBER COULD NOT BE INCLUDED FROM THE
IEW2456E 9207 SYMBOL @@ISWCTY UNRESOLVED.  MEMBER COULD NOT BE INCLUDED FROM THE
IEW2456E 9207 SYMBOL @@TOWUPP UNRESOLVED.  MEMBER COULD NOT BE INCLUDED FROM THE
IEW2456E 9207 SYMBOL CHARMAP@ UNRESOLVED.  MEMBER COULD NOT BE INCLUDED FROM THE
IEW2456E 9207 SYMBOL @@WCSRTO UNRESOLVED.  MEMBER COULD NOT BE INCLUDED FROM THE
IEW2456E 9207 SYMBOL @@MBSRTO UNRESOLVED.  MEMBER COULD NOT BE INCLUDED FROM THE
IEW2456E 9207 SYMBOL @@WCRTOM UNRESOLVED.  MEMBER COULD NOT BE INCLUDED FROM THE
IEW2456E 9207 SYMBOL @@MBRTOW UNRESOLVED.  MEMBER COULD NOT BE INCLUDED FROM THE
IEW2456E 9207 SYMBOL @@MBRLEN UNRESOLVED.  MEMBER COULD NOT BE INCLUDED FROM THE
IEW2456E 9207 SYMBOL @@MBSINI UNRESOLVED.  MEMBER COULD NOT BE INCLUDED FROM THE
IEW2456E 9207 SYMBOL @@WCSID@ UNRESOLVED.  MEMBER COULD NOT BE INCLUDED FROM THE
IEW2456E 9207 SYMBOL @@CSID@S UNRESOLVED.  MEMBER COULD NOT BE INCLUDED FROM THE
IEW2456E 9207 SYMBOL @@WCWIDT UNRESOLVED.  MEMBER COULD NOT BE INCLUDED FROM THE
IEW2456E 9207 SYMBOL @@WCSWID UNRESOLVED.  MEMBER COULD NOT BE INCLUDED FROM THE
IEW2456E 9207 SYMBOL @@MBLEN@ UNRESOLVED.  MEMBER COULD NOT BE INCLUDED FROM THE
IEW2456E 9207 SYMBOL @@WCSTOM UNRESOLVED.  MEMBER COULD NOT BE INCLUDED FROM THE
IEW2456E 9207 SYMBOL @@WCTOMB UNRESOLVED.  MEMBER COULD NOT BE INCLUDED FROM THE
IEW2456E 9207 SYMBOL @@MBSTOW UNRESOLVED.  MEMBER COULD NOT BE INCLUDED FROM THE
IEW2456E 9207 SYMBOL @@MBTOWC UNRESOLVED.  MEMBER COULD NOT BE INCLUDED FROM THE


                         *** M O D U L E  M A P ***

---------------
CLASS  B_TEXT            LENGTH =     38D0  ATTRIBUTES = CAT,   LOAD, RMODE=ANY
                         OFFSET =        0 IN SEGMENT 001       ALIGN = DBLWORD
---------------

 SECTION    CLASS                                      ------- SOURCE --------
  OFFSET   OFFSET  NAME                TYPE    LENGTH  DDNAME   SEQ  MEMBER

                0  EDC$LOCL           CSECT        E0  SYSLIN    01  **NULL**
      60       60     INSTANTI           LABEL

               E0  EDS$LOCL           CSECT      33F8  SYSLIN    01  **NULL**

             34D8  CEESG003        *  CSECT       12B  SYSLIB    01  CEESG003

             3608  @@TOWLOW        *  CSECT         A  SYSLIB    01  @@TOWLOW

             3618  @@WCTYPE        *  CSECT         A  SYSLIB    01  @@WCTYPE

             3628  @@STRCOL        *  CSECT         A  SYSLIB    01  @@STRCOL

             3638  @@REGERR        *  CSECT         A  SYSLIB    01  @@REGERR
       0     3638     REGERROR           LABEL

             3648  @@REGEXE        *  CSECT         A  SYSLIB    01  @@REGEXE
       0     3648     REGEXEC            LABEL

             3658  @@REGFRE        *  CSECT         A  SYSLIB    01  @@REGFRE
       0     3658     REGFREE            LABEL

             3668  @@TDINIT        *  CSECT         A  SYSLIB    01  TOD@INIT
       0     3668     TOD@INIT           LABEL

             3678  CEESTART        *  CSECT        B0  SYSLIB    01  CEESTART

             3728  CEEBETBL        *  CSECT        28  SYSLIB    01  CEEBETBL

             3750  CEEBPUBT        *  CSECT        70  SYSLIB    01  CEEBPUBT

             37C0  CEEBTRM         *  CSECT        A4  SYSLIB    01  CEEBTRM

             3868  CEEBLLST        *  CSECT        5C  SYSLIB    01  CEEBLLST
      10     3878     CEELLIST           LABEL

             38C8  CEEBINT         *  CSECT         8  SYSLIB    01  CEEBINT




          ***  DATA SET SUMMARY  ***

DDNAME    CONCAT   FILE IDENTIFICATION
SYSLIB      01     CEE.SCEELKED
SYSLIN      01     SYS10306.T083220.RA000.TSU08GNX.LOADSET.H01





          *** SYMBOL REFERENCES NOT ASSOCIATED WITH ANY ADCON ***

TYPE   SCOPE   NAME
 ER      L     CEESG003

          *** E N D  O F  M O D U L E  M A P ***



PROCESSING OPTIONS:

   ALIASES             NO
   ALIGN2              NO
   AMODE               31
   CALL                YES
   CASE                UPPER
   COMPAT              UNSPECIFIED
   DCBS                NO
   DYNAM               NO
   EXTATTR             UNSPECIFIED
   EXITS:              NONE
   FILL                NONE
   GID                 UNSPECIFIED
   HOBSET              NO
   LET                 04
   LINECT              060
   LIST                SUMMARY
   LISTPRIV            NO
   MAP                 YES
   MAXBLK              032760
   MSGLEVEL            00
   OVLY                NO
   PRINT               YES
   RES                 NO
   REUSABILITY         REFRESHABLE
   RMODE               UNSPECIFIED
   STORENX             NO
   TERM                NO
   UID                 UNSPECIFIED
   UPCASE:             NO
   WKSPACE             000000K,000000K
   XCAL                NO
   XREF                NO
   ***END OF OPTIONS***







SAVE OPERATION SUMMARY:
   MEMBER NAME         EDC$1TEY
   LOAD LIBRARY        TSU08.LOCALE.LOAD
   PROGRAM TYPE        LOAD MODULE
   VOLUME SERIAL       WORK01
   MAX BLOCK           6144
   DISPOSITION         REPLACED
   TIME OF SAVE        08.32.25  NOV  2, 2010


SAVE MODULE ATTRIBUTES:

   AC                  000
   AMODE                31
   DC                  NO
   EDITABLE            YES
   EXCEEDS 16MB        NO
   EXECUTABLE          NO
   MIGRATABLE          YES
   OL                  NO
   OVLY                NO
   PACK,PRIME          NO,NO
   PAGE ALIGN          NO
   REFR                YES
   RENT                YES
   REUS                YES
   RMODE               ANY
   SCTR                NO
   SSI
   SYM GENERATED       NO
   TEST                NO
   XPLINK              NO
   MODULE SIZE (HEX)   000038D0







 ENTRY POINT AND ALIAS SUMMARY:

 NAME:            ENTRY TYPE AMODE C_OFFSET CLASS NAME        STATUS

 INSTANTI          MAIN_EP      31 00000060 B_TEXT

                         ***** E N D  O F  R E P O R T *****




z/OS V1 R3 BINDER     08:32:24 TUESDAY NOVEMBER  2, 2010
BATCH EMULATOR  JOB(TSU08GNX) STEP(GENLOCNX) PGM= HEWL      PROCEDURE(LKED    )
IEW2008I 0F03 PROCESSING COMPLETED.  RETURN CODE =  8.


----------------------
MESSAGE SUMMARY REPORT
----------------------
 SEVERE MESSAGES        (SEVERITY = 12)
 NONE

 ERROR MESSAGES         (SEVERITY = 08)
 2456

 WARNING MESSAGES       (SEVERITY = 04)
 NONE

 INFORMATIONAL MESSAGES (SEVERITY = 00)
 2008  2278  2322


 **** END OF MESSAGE SUMMARY REPORT ****




as you see I do not intend to change and select one existed loacale at run time but my primary goal is to add a new locale and a new coded character set to language environment run time libraries.such that users can select this new locale by e.g. selocale() function etc.

thanks again
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2433
Location: Netherlands, Amstelveen

PostPosted: Tue Nov 02, 2010 1:03 pm    Post subject:
Reply with quote

Did you assemble the EDC$LCNM member and link-edit it into the hlq.LOCALE.LOADLIB load library with the member name EDC$LCNM ?

Like described in :

XL C/C++Programming Guide SC09-4765-10

Chapter 58
Back to top
View user's profile Send private message
kamran

New User


Joined: 01 May 2005
Posts: 55

PostPosted: Tue Nov 02, 2010 2:35 pm    Post subject:
Reply with quote

PeterHolland wrote:
Did you assemble the EDC$LCNM member and link-edit it into the hlq.LOCALE.LOADLIB load library with the member name EDC$LCNM ?

Like described in :

XL C/C++Programming Guide SC09-4765-10

Chapter 58

Hi,
Yes I compiled it without any error.
from my last post I brought CEE.SCEEPROC from higher operating system and surprisingly I was managed to compile it (the source of the new locale TEXAN) without any error and I don't know whether it work fine or not because I moved it from pds load library to HFS loacale directory by OPUT command but when I try to set LC_ALL environment variable to TEXAN.IBM-1047 I got the error FSUMA912 Cannot set locale: The internationalization variable settings are invalid which I am looking for solution.

regards
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2433
Location: Netherlands, Amstelveen

PostPosted: Tue Nov 02, 2010 3:45 pm    Post subject:
Reply with quote

maybe the following link applies to your problem :

http://www-01.ibm.com/support/docview.wss?uid=swg21428650&myns=swgother&mynp=OCSSGMGV&mync=R


The shell called the "setlocale(LC_ALL, "")" function, which failed. This is probably a result of an invalid or corrupted locale file.

The following link has information about locale naming conventions :

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/cbcpg1a0/8.2.5.1
Back to top
View user's profile Send private message
kamran

New User


Joined: 01 May 2005
Posts: 55

PostPosted: Tue Nov 02, 2010 5:05 pm    Post subject:
Reply with quote

PeterHolland wrote:
maybe the following link applies to your problem :

http://www-01.ibm.com/support/docview.wss?uid=swg21428650&myns=swgother&mynp=OCSSGMGV&mync=R


The shell called the "setlocale(LC_ALL, "")" function, which failed. This is probably a result of an invalid or corrupted locale file.

The following link has information about locale naming conventions :

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/cbcpg1a0/8.2.5.1


Yes
as the above link says maybe the generated locale module does not have a valid format, because I copied En_US.IBM-1047 to a locale directory with ne name of TEXAN.IBM-1047 setting "LOCPATH" variable to $PWD, exporting LC_ALL with it did not get any error....???
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2433
Location: Netherlands, Amstelveen

PostPosted: Wed Nov 03, 2010 1:45 pm    Post subject:
Reply with quote

kamran,

i cant help you further. I assume you are trying to customize a locale
as described in chapter 58, XL C/C++Programming Guide SC09-4765-10 (Part 8. Internationalization: Locales and Character Sets).

I would suggest to follow the instructions described there to the letter,
cause locale naming conventions are adamant.

Good luck.
Back to top
View user's profile Send private message
kamran

New User


Joined: 01 May 2005
Posts: 55

PostPosted: Sat Nov 06, 2010 2:19 pm    Post subject:
Reply with quote

PeterHolland wrote:
kamran,

i cant help you further. I assume you are trying to customize a locale
as described in chapter 58, XL C/C++Programming Guide SC09-4765-10 (Part 8. Internationalization: Locales and Character Sets).

I would suggest to follow the instructions described there to the letter,
cause locale naming conventions are adamant.

Good luck.


Thank you PeterHolland,

Yes, I am trying the same path witch has been described in "C/C++Programming Guide", but because I am trying to costomize an z/OS V1.4 so I am folowing "cbcpg130.pdf: Chapter 46, C/C++Programming Guide SC09-4765-03(Part 7. Internationalization: Locales and Character Sets)" which is related document for zos 1.4.

Because I am new to this topic I have several problem in implementin it.the worse problem is that localedef command in omvs has been killed with return code of 137.because of this I try to work on our higher operating system.so I would be appreciate to answer me if I had problems.

regards
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts REXX Screen not working due to LINKED... sundarkudos CLIST & REXX 1 Mon May 09, 2016 1:44 pm
No new posts Linkedit COBOL with MQ Connection Garry Carroll Java & MQSeries 15 Wed Sep 05, 2012 9:41 pm
No new posts Error in linkedit step cobol calling ... enrico-sorichetti PL/I & Assembler 31 Fri Dec 24, 2010 2:57 pm
No new posts Error message "SYMBOL DSNWLI UNR... sreelekshmisr PL/I & Assembler 5 Fri Jun 25, 2010 5:24 pm
No new posts CICS Linking Error: SYMBOL IDMS UNRES... dbzTHEdinosauer CICS 6 Mon Mar 03, 2008 10:11 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us