× 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.



A couple problems here -

1. DS is 1 character off, to the right - of course, that doesn't affect the long name, just that it showed up in RDi as incorrect
2. The first part of a continued name has to be within positions 7-21, as I just read in the docs - so the following will work -

D myDS            DS
D   SField1
D  Sfield_long_n...
Dame

or, to be a little "prettier", since the first part doesn't have to fill position 7-21, and it doesn't have to start at position 7 -

D myDS            DS
D   SField1
D  Sfield_long...
D        _name

If you did have the from/to or length specified, they have to be after the last part of the name

This is all so much cleaner (better?) in free-form, IMHO -

dcl-ds myDS;
  SField1;
  Sfield_long_name;
end-ds;

Regards
Vern

On 8/4/2024 2:21 AM, Dave wrote:
Folks,

How do I code the long subfield name shown below in myDS?

D myDS DS
D SField1
D Sfield_long_name...
D

Each field is already known to the program as they are fields of an
externally described file, hence no definition is given.

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.