Multiple choice technology mainframe

Given that var_1 = 'Abc123', what is the result of DATATYPE(var_1,N)?

  1. '123'

  2. 'Abc123'

  3. 1

  4. 0

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

In REXX, the DATATYPE function with the 'N' option checks if the string is a valid REXX number. Since 'Abc123' contains non-numeric alphabetic characters, it is not a valid number, returning 0.