The directory itself won't have any lines of code -- it is merely pointers to members of the PDS. You could print a member listing of the PDS via ISPF and that'll tell you how many records are in each member of the PDS and the total records.
Whether or not you consider the total number of records to be the number of lines of code, however, is a fish of a different color. Especially if there are multiple languages in your PDS.
Yeah i agree that a PDS may contain different languages' code. Here i want to take one record as one line of code. Using ISPF, i could not get how to list the total number of records present in the members of the PDS. Please help me to achieve this na