D E DS BASED(TYPE_DEFINITION_POINTER)
D EXTNAME(somefile)
D PREFIX(SOMEFILE_TYPES_)
D proc PR
D parm LIKE(SOMEFILE_TYPES_FLD1)
D EXTNAME(somefile)
D PREFIX(SOMEFILE_TYPES_)
D proc PR
D parm LIKE(SOMEFILE_TYPES_FLD1)
If you are on V5R1 or later, you could use QUALIFIED instead of PREFIX:
D somefileTypes...
D E DS BASED(TYPE_DEFINITION_POINTER)
D EXTNAME(somefile)
D QUALIFIED
D proc PR
D parm LIKE(somefileTypes.FLD1)
D E DS BASED(TYPE_DEFINITION_POINTER)
D EXTNAME(somefile)
D QUALIFIED
D proc PR
D parm LIKE(somefileTypes.FLD1)
Note: BASED(TYPE_DEFINITION_POINTER) is used to avoid having any storage assigned to the data structure. Sixteen bytes of storage will be assigned to the pointer itself, so you should always use the same pointer for this kind of "type definition."
--Barbara Morris
This email address is being protected from spambots. You need JavaScript enabled to view it.
LATEST COMMENTS
MC Press Online