Skip to Main Content
Status Not in Plan
Workspace Natural for z/OS
Categories Natural (NAT)
Created by Guest
Created on Jul 15, 2021

NAT: Numeric target operands in SEPARATE statement desired

Unfortunately it is not possible with the SEPARATE statement to assign numeric values directly to numeric target fields.
NAT0240 Operand format invalid. Format A, B or U expected.

So, sometimes laborious redefinitions are necessary.
It would be a great improvement if numeric target operands were possible.

Created on Brainstorm 05/30/2017 11:53 PM
Brainstorm ID 4851
  • Admin
    Eli Cohen
    Nov 10, 2021

    Source for a SEPARATE statement is always a string type variable format (A,U,B). The result is also always a string type variable (A,U,B).

    A conversion would be required to come to a numeric format.

    The VAL() function of Natural need to be used for such a conversation or MOVE EDITED statement could be used.

    In general MOVE Alpha to Numeric field is not supported.

  • +3