DNEXT/IFEND,label:[,IFERR,label:]
Reads the header information of the next file in the directory. The header information which is obtained is stored in the respective global parameters listed below:
|
Global Parameters | ||
|
&CAREA |
&CRDATE |
&CRTIME |
|
&DESCR |
&DIR |
&DIRPTH |
|
&FLEN |
&FNAME |
&FORMAT |
|
&FSTAT |
&LADATE |
&LATIME |
|
&LMDATE |
&LMTIME |
&OWNER |
|
&PCLASS |
|
|
NOTE: On UNIX systems, when the variable UGII_OPTION is set to LOWER
or LONAME, DNEXT will skip files with uppercase characters.
If the file header read is that of a subdirectory, the subdirectory may be opened with the SOPEN statement and the subsequent DNEXT statement will read from that subdirectory.
When the end of a subdirectory is reached, the subdirectory must be closed using SCLOSE and the subsequent DNEXT statement will read from the previous directory.
|
Parameter |
Description |
|
IFEND,label: |
Specifies a label to which the program jumps when the end of the directory is reached. |
|
IFERR,label: |
Specifies a label to which the program jumps if an error occurs. |