Re: Fixup problem with pTAL program



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

.



Relevant Pages

  • Re: ActiveSheet.CodeName?
    ... It's a bug in excel. ... Chip Pearson posted one fix, but I don't recall if that was the easiest way. ... You may want to look through google to find a better method. ... it keeps returning an empty string! ...
    (microsoft.public.excel.programming)
  • Re: sending variable to include file
    ... problem I can't fix, ... being nothing but an empty string. ... You can't add ?args to an include; PHP doesn't evalutate that when ... that's the HTTP daemon's job.) ...
    (comp.lang.php)
  • Re: Missing KB article on Framework hotfix
    ... Call the MS Support Services of your country, tell them to search in Google ... FIX: The Server property may return as an empty string when you receive the ...
    (microsoft.public.dotnet.framework)
  • Re: sending variable to include file
    ... vetchling wrote: ... problem I can't fix, ... being nothing but an empty string. ... You don't need to pass a variable to an included file, it already has access to all variables in the includING script. ...
    (comp.lang.php)