I have made a program for reading a XML-file.
I opened the file, control the data and close the file.
The "CBL_COPY_FILE" works but when I use "CBL_DELETE_FILE" it don't work.
When I use a not xml-file and copy and delete the file it works.
How can I solve this problem in one program.
Coding:
File-control.
SELECT BER218
ASSIGN TO WS-ALGFILE-NAAM
ORGANIZATION IS XML
DOCUMENT-TYPE IS omitted
FILE STATUS IS WS-ALGFILE-STATUS.
File section.
XD BER218.
COPY CAK218.
Procedure Division.
CALL "CBL_COPY_FILE"
USING WS-ALGFILE-NAAM WS-RINFO-NAAM
RETURNING return-code
RETURN-CODE = 0
CALL "CBL_DELETE_FILE"
USING WS-ALGFILE-NAAM
RETURNING return-code
RETURN-CODE <> 0
#COBOL




