Read and Write operation on the same file

General discussion on the JZOS batch launcher and toolkit
Post Reply
RMJ
Posts: 2
Joined: Wed Jul 15, 2015 2:33 am

Read and Write operation on the same file

Post by RMJ »

I am relatively new to JZOS. Could someone tell me if it is possible to read and write to the same file(input and output operation).
My requirement is i want to write to a file, then read the same file and do more processing.

I get the error : file is open() error

regards
RMJ
Posts: 2
Joined: Wed Jul 15, 2015 2:33 am

Re: Read and Write operation on the same file

Post by RMJ »

Hi !!!
Any help is appreciated!!!
moral
Posts: 7
Joined: Thu Aug 08, 2013 2:24 am

Re: Read and Write operation on the same file

Post by moral »

Hi,
Try use something like that eg.:
ZFile zFile = new ZFile("//DD:FILEIN", "wb,type=record,noseek");
do something with zFile....
zFile.reopen("rb,type=record,noseek");
do something with zFile....
.....
Post Reply