Convert a PDSDE to a PMAR

You can convert a PDSDE to a PMAR when you need to convert a directory entry which was obtained from BLDL into PMAR format. When using this macro, you must supply the address of the indicator byte (PDS2INDC) of the PDSDE and an output area of sufficient size for the PMAR to be generated. The length of the PMAR is returned in a full word field supplied by the caller. If the PDSDE is for an alias entry (i.e. the PDS2ALIS bit is on), you must provide an 8-byte area in which the primary name will be returned.

A sufficient size for the PMAR is the length of the PMAR basic section plus the length of the PMARR section.

It is impossible to verify with complete certainty that the input PDSDE is a directory entry for a load module. However, the results of converting a non-load module directory entry into PMAR format would be completely unintelligible. Therefore, IEWLCNVT performs certain minimal checks to ensure that the PDSDE approximates the format of a load module directory entry before processing the conversion. If any of these tests fail, the conversion will not be performed and error return and reason codes will be issued.