ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

Nested data structure

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Nested data structure

    I need to define an external data structure DSORDFIL for a file named ORDERFIL. ORDERFIL has a field named ORDAT in format YYYYMMDD. How can I define a nested data structure within DSORDFIL that contains 3 fields oryy, ormm,ordd that are subfields of ORDAT

  • #2
    Not tested but something like this

    Code:
    dcl-ds xxxx extname('yyyy')  Qualified;
       dcl-ds zzzz samepos(ORDAT);
          yyyy  
          mm
          dd
       end-ds;

    Comment

    Working...
    X