/*-------------------------------------------------------------------+
|                                                                    |
|                Copyright (c) 1996, SAS Institute Inc.              |
|                  Unpublished - All Rights Reserved                 |
|                      S A S / C   S A M P L E                       |
|         Name: PDSMEMH                                              |
|     Language: C                                                    |
|      Purpose: Maps PDS directory entry                             |
|                                                                    |
|   For Sample: prefix.SAMPLE.C(P2UREAD)                             |
|                                                                    |
+-------------------------------------------------------------------*/
#ifndef __PDSMEMH__
#define __PDSMEMH__
/*--------------------------------------------------------------------+
| Member entry from a partioned data set directory                    |
+--------------------------------------------------------------------*/
struct MEMENTRY
      {
       char name(|8|);      /*  Member name.                         */
       char ttrmem(|3|);    /*  TTR.                                 */
       char c;              /*  Information about user data field    */
      };

/*--------------------------------------------------------------------+

 Ref: MVS/XA Data Administration Guide, IBM Publication GC26-4013

 A Partitioned Data Set Directory Block

 +----------+--------------------+--------------------+-------------...
 |Number of |    Member Entry    |    Member Entry    |    Member En
 |Bytes Used|         A          |         B          |           C
 |(Maximum  |                    |                    |
 |  256)    |                    |                    |
 +----------+--------------------+--------------------+-------------...
 <----2-----><----------------Maximum 254----------------------------->

 A Partitioned Data Set Member Entry

 +----------------+------+--+-----------------------------------------+
 |     Member     |  TTR |C |             Optional User Data          |
 |      Name      |      |  |  TTRN  |  TTRN    |  TTRN   |           |
 +----------------+------+--+-----------------------------------------+
 <-------8--------><--3--><1><------------0 to 31 halfwords----------->

 Data in Member Entry 'C' Field Bitfield Definitions
 +-----------+-------------+----------------------+
 |   1 if    |  Number of  |    Number of User    |
 |Name is an |  User Data  |    Data Halfwords    |
 |  Alias    |    TTRNs    |                      |
 +-----------+-------------+----------------------+
     0           1-2               3-7
+--------------------------------------------------------------------*/
#endif /* __PDSMEMH__ */