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



<snip>
If I have an incoming field defined in the PI, I thought I could have it
also defined in a DS in order to split it up without doing any %subst.

It's not compiling due to "The Name entry is already defined on a
Definition Specification".
</snip>

You can split it up on the incoming. Define a data structure and put the
name of the data structure in the incoming field. I create a type
definition and then use that type definition anyplace I need the data
structure.

d TD_MyStructure...
d ds Qualified
d Based(StdNulPtr)
d Field1...
d 5a
d Field2...
d 10a

d Program_Entrance...
d pr ExtPgm('TESTIT')
d PR_InParm1...
d LikeDs(TD_MyStructure)
d Const

d Program_Entrance...
d pi
d InParm1...
d LikeDs(TD_MyStructure)
d Const

StdNulPtr (Standard Null Pointer) is just defined in a copy member I use
to define my type.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.