TESTVOL: Demonstration program for FINDVOL.
Requires the following information:
Type PIC X(01) Must be "I" (say "eye") to test for a file's presence or "O" (say "oh") to test for it's absence.File PIC X(08) Name and location of the file to Library PIC X(08) be tested. Volume PIC X(08)
Return 4-byte integer Return code from FINDVOL.
The return code can be analyzed as follows:
Type = "I": 0 One file found 4 File not found 8 File on more than one volume 18 Invalid parameters
Type = "O": 0 Library found 4 File not found 12 File exists 18 Invalid parameters
ISWU documentation is available.
IF
EXISTS
clause in Procedure language.