GT.M seems to encounter an error when a parameter is null.
test(x) q x
GTM>w $$test^XBAS() %GTM-E-UNDEF, Undefined local variable: x
Is it possible to configure GT.M to handle null as a null string ("")?
Look at the VIEW [NO]UNDEF command in the Programmers Guide.
GTM>view "noundef" w a(b) GTM>view "undef" w a(b) %GTM-E-UNDEF, Undefined local variable: b GTM>
or, use:
test(x) Quit $Get(x)
On Sat, Jun 17, 2017 at 8:39 PM, K.S. Bhaskar bhaskar@users.sf.net wrote:
Look at the VIEW [NO]UNDEF command in the Programmers Guide. GTM>view "noundef" w a(b) GTM>view "undef" w a(b) %GTM-E-UNDEF, Undefined local variable: b GTM> Handling Null Arguments https://sourceforge.net/p/fis-gtm/discussion/34582/thread/427cb791/?limit=25#7e6e Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/fis-gtm/discussion/34582/ To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/
GTM>view "noundef" w a(b)
GTM>view "undef" w a(b) %GTM-E-UNDEF, Undefined local variable: b
GTM>
Handling Null Arguments https://sourceforge.net/p/fis-gtm/discussion/34582/thread/427cb791/?limit=25#7e6e
Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/fis-gtm/discussion/34582/
To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/
Thanks, that helps. Setting the environment variable seems to do the trick.
export gtm_noundef=1
Log in to post a comment.
GT.M seems to encounter an error when a parameter is null.
test(x) q x
GTM>w $$test^XBAS()
%GTM-E-UNDEF, Undefined local variable: x
Is it possible to configure GT.M to handle null as a null string ("")?
Last edit: bstudtma 2017-06-17
Look at the VIEW [NO]UNDEF command in the Programmers Guide.
or, use:
test(x) Quit $Get(x)
On Sat, Jun 17, 2017 at 8:39 PM, K.S. Bhaskar bhaskar@users.sf.net wrote:
Thanks, that helps. Setting the environment variable seems to do the trick.
export gtm_noundef=1