CALL "C$GETLASTFILEOP" USING fileOp |
fileOp | PIC X(n) | Receives the operation name. Possible values are: "Close" "Delete" "DeleteFile" "DeleteRandom" "Open" "ReadNext" "ReadPrevious" "ReadRandom" "Rewrite" "RewriteRandom" "Start" "Unlock" "Write" "WriteRandom" |
*> define fileName, filePath and fileOp as pic x(n) display-io-error. ... call "c$getlastfilename" using fileName filePath call "c$getlastfileop" using fileOp *> assuming the file error code was already moved to a general variable display message "Error code : " fs-code x"0d0a" "I/O Operation : " fileOp x"0d0a" "On file : " fileName x"0d0a" "File path : " filePath. |