Return organization of a z/OS UNIX file - Key = 'C01D'

DINRFDAT requests the return of the organization of an z/OS® UNIX file.

When you code DINRFDAT, # must be 1, LEN must be at least 1 and can be longer, and the PARM field must be the length specified by the LEN value. If there is an organization associated with the allocation, the system returns the organization in PARM and 0001 in LEN. PARM will contain one of the following values:

Example: To request the return of the organization of the z/OS UNIX file /u/myuid/scr.dat, code:

Input:
KEY    #     LEN   PARM
8017   0001  0010  61 A4 61 94 A8 A4 89 84 61 A2 83 99 4B 84 81 A3
C01D   0001  0001  00
Output:
KEY    #     LEN   PARM
C01D   0001  0001  80

The retrieved information indicates a file organization of binary.