Return z/OS UNIX file path specification - Key = 'C017'

DINRPATH requests the return of the path specification for the z/OS® UNIX file associated with the specified allocation.

When you code DINRPATH, # must be 1 and LEN must be at least the length of the pathname and can be longer, and the PARM field must be the length specified by the value in LEN.

If a pathname is associated with the allocation, the system returns the pathname in PARM and its length in LEN.

Example: To request the return of the z/OS UNIX file pathname for ddname MYDD, code:

Input:
KEY    #     LEN   PARM
0001   0001  0004  D3 E8 C4 C4
C017   0001  00FF  00  00...00...00...00...
Output:
KEY    #     LEN   PARM
C017   0001  0016  61 A4 61 94 A8 A4 89 84 61 94 A8 81 97 97 61 A2 83 99 4B 84 81 A3

The retrieved output indicates that pathname /u/myuid/myapp/scr.dat is associated with MYDD.