Hello all,
We have a process that reads records in a file through a CL program using the RCVF command, and then processes them. I have a need to be able to read through this file a second time starting from the beginning. I don't know of a CL equivalent of the SETLL command that would reset my pointer to the beginning of the file. Any suggestions on how to do this? Would calling a second program from the first one, and reading the file the second time there, reset everything? We thought about closing the file after the first loop, but then how do we open it again within the CL? Any ideas would be appreciated. Thanks.
We have a process that reads records in a file through a CL program using the RCVF command, and then processes them. I have a need to be able to read through this file a second time starting from the beginning. I don't know of a CL equivalent of the SETLL command that would reset my pointer to the beginning of the file. Any suggestions on how to do this? Would calling a second program from the first one, and reading the file the second time there, reset everything? We thought about closing the file after the first loop, but then how do we open it again within the CL? Any ideas would be appreciated. Thanks.
Comment