System Debug Reference Manual (32650-90888)

Chapter 10 405
System Debug Standard Functions
func ltolog
Examples
%cmdebug > wl lpub(12.304)
LPUB %12.304
Coerce the simple long pointer 12.304 into a LPUB logical code pointer.
%cmdebug > wl lpub( sort )
LPUB %2.6632
Print the address of the procedure named sort. Note that the search path used for
procedure name lookups is restricted to the logon account library (LPUB).
%cmdebug > wl lpub(sys(24.630))
LPUB %24.630
The coercion simply changes the associated logical file. The pointer's bit pattern remains
unchanged.
$nmdat > wl lpub( 1 )
LPUB $0.1
$nmdat > wl lpub( ffff )
LPUB $0.ffff
$nmdat > wl lpub( 1234abcd )
LPUB $0.1234abcd
$nmdat > wl lpub( -1 )
LPUB $0.ffffffff
$nmdat > wl lpub( 1234.5678 )
LPUB $1234.5678
$nmdat > wl lpub( true )
LPUB $0.1
$nmdat > wl lpub( "ABCDEFG" )
LPUB $414243.44454647
$nmdat > wl lpub( prog(1.2) )
LPUB $1.2
Limitations, Restrictions
none
func ltolog
Long to logical. Converts a long pointer into a NM logical code pointer (LCPTR).