× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



If you intersperse the array data with blank lines (as in double-spacing), maybe. It's kind of funky and looks convoluted, but if it has to be as you described, I think this should work.

Like this:

D  FOOBARCDTA     S    100A     DIM(132)   PERRCD(1) CTDATA
D  P_FOOBAR           S          *      INZ( %ADDR(FOOBARDS)

D  FOOBARDS          DS               BASED( P_FOOBAR )
D     FOOBAR                    200A    DIM( 66 )
D     FOO                                5S 0 OVERLAY( FOOBARDTA2 )
D     BAR                              97A    OVERLAY(FOOBARDTA2:*NEXT)

Does this look okay? You already realize you can go For idx =1 to 66 etc. but that's more convoluted yet methinks.

It's been awhile, but this wouldn't lose any cross-or implicit functionality from the ALT() keyword, would it?

--- Alan
========================

James H H Lampert wrote:

Anybody know if it's possible to define a compile-time array (or in my case, an alternating pair of compile-time arrays) so that the total length of an element (or element pair) is over 100 bytes, so long as the initializers in the CTDATA block are under 100 bytes?

On a more concrete level, suppose you have

  D FOO        S           5S 0 DIM(66) PERRCD(1) CTDATA
  D BAR        S          97A   DIM(66) ALT(FOO)

which would produce a combined length of 102 bytes. Anybody know whether the compiler would accept that, so long as it's never necessary to initialize more than the first 95 bytes of BAR?

--
JHHL



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.