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

Provide SIZEOF( dataitem ) to determine the storage size of dataitem

Natural defines a set of "Application Related System Variables".

To give an example: *LBOUND() and *UBOUND()can be used to determine the lower and upper bound of an array.

If you have to answer the question "how much bytes are used for a dataitem?" and the dataitem is a structure, you must start counting bytes by hand. You can optimize this by using a REDEFINE with datatype (A1/1:n) and reduce n until you get NAT ERROR 39.

A new System variable *SIZEOF( dataitem ) would make life easier.



Created on Brainstorm 11/14/2017 06:50 AM
Brainstorm ID 5444
  • Admin
    Eli Cohen
    Reply
    |
    Mar 24, 2022

    This request is no longer desired by the requester. In addition no much votes or similar requests.