IC SunsetThe developerWorks Connections platform will be sunset on December 31, 2019. On January 1, 2020, this community and its apps will no longer be available. More details available on our FAQ.
Topic
  • 3 replies
  • Latest Post - ‏2019-08-28T21:11:49Z by JonParis
OSROMI
OSROMI
37 Posts

Pinned topic array

‏2019-08-28T20:38:42Z | arrar

Easy consultation

How to declare a full-free array of 100 elements and 100 in length and how to fill it in a loop one by one

Updated on 2019-08-28T20:42:41Z at 2019-08-28T20:42:41Z by OSROMI
  • JonParis
    JonParis
    345 Posts
    ACCEPTED ANSWER

    Re: array

    ‏2019-08-28T21:11:49Z  

           dcl-s arreglo char(100)  dim(100) ctdata perrcd(1);

     

    But I see no connection between the array arpeggio and the pDatos assignment.  Did you omit some code?

  • barbara_morris
    barbara_morris
    605 Posts

    Re: array

    ‏2019-08-28T20:49:03Z  

    Could you show us what you have tried to code so far?

  • OSROMI
    OSROMI
    37 Posts

    Re: array

    ‏2019-08-28T21:01:00Z  

    arreglo           s            100    dim(100) ctdata perrcd(1)

     

     

    A colleague asked me why I wanted to do it as a data plot

     

              pDatos = OUMSGERR.MSG.MSGS(1).DESCRIPCION;

    Updated on 2019-08-28T21:06:18Z at 2019-08-28T21:06:18Z by OSROMI
  • JonParis
    JonParis
    345 Posts

    Re: array

    ‏2019-08-28T21:11:49Z  

           dcl-s arreglo char(100)  dim(100) ctdata perrcd(1);

     

    But I see no connection between the array arpeggio and the pDatos assignment.  Did you omit some code?