Re: Fixup problem with pTAL program
- From: "mustlearntandem" <mustlearntandem@xxxxxxxxxxxx>
- Date: 23 Aug 2005 14:29:08 -0700
This fix from KBNS looks like it'll do the trick!
=================================================
Solution properties
TitlepTAL program reports unresolved external reference - <anonymous>
(PROC) when run.
ID101.0.9384048.4128938
Created2003-02-21
Last modified2003-02-21
Problem environment
PTAL
T9248
NLD
T6017
Genesis Solution 10-020214-6694
Verification: use NOFT LISTUNRESOLVED * BRIEF command the <anonymous>
entries will actually be for DATA blocks
Problem description
pTAL program reports unresolved external reference - <anonymous> (PROC)
when run.
External References Not Resolved to Any User/System Library:
Prg: <object file name> -> <anonymous> (PROC)
Undefined externals
Causes of this problem
Look in the source for the use of an empty string in a move statement
(':=' assignment), for example:
STRING .EXT buffer [0:30];
....
buffer ':=' [""] & [1]; ! note that first reference is an empty string
pTAL generates code that to move an empty (zero length) string from an
invalid address; this invalid but unreferenced block gets converted by
NLD into an undefined data block which is then reported by NSK on the
first run of the object.
Solution
NOTE: The effect is harmless and may be safely ignored, the reference
is not used, the move command is in effect a no-op for an empty string
so the fact that it refers to an invalid address does not cause any
problems.
WORKAROUND: Elimnate empty strings from move commands, either remove
them or change them to non-empty strings depending on the intentions of
the programmer, e.g. convert the above move to either:
buffer ':=' [1]; ! empty string removed
or
buffer ':=' ["stuff"] & [1]; ! empty string converted to non-empty
string
depending on what is intended.
No Fix Currently Planned
.
- Follow-Ups:
- Re: Fixup problem with pTAL program
- From: rgb
- Re: Fixup problem with pTAL program
- References:
- Fixup problem with pTAL program
- From: rgb
- Fixup problem with pTAL program
- Prev by Date: Fixup problem with pTAL program
- Next by Date: Re: Fixup problem with pTAL program
- Previous by thread: Fixup problem with pTAL program
- Next by thread: Re: Fixup problem with pTAL program
- Index(es):
Relevant Pages
|