I've had the same problem in the past when modifying a VOC entry, but it wasn't in conjunction with using TRANS. I have a utility that allows restoration of archived spooler files from various directories, and I had it create a VOC "F" entry in order to list the contents of the selected directory with the UV LIST command. When I initially wrote the utility, I found that only the first directory selected could ever be listed even after rewriting the path in attr. 2 of the VOC entry. The only way to select another was to drop to TCL and execute the utility again. My solution was to set attr. 2 of the VOC entry to point to a symbolic link whos path and name never change. I execute "rm" and "ln -s" at the OS level to repoint the link to the correct directory from within the UV program. That eliminated the need to drop back to TCL each time a new directory was selected.
-John -----Original Message----- From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of George Gallen Sent: Wednesday, November 04, 2009 2:04 PM To: U2 Users List Subject: Re: [U2] FCB being used in TRANS is not getting cleared. this is in a subroutine. So one pass into the subroutine, file1 gets setup as a Q pointer in the VOC, and read from, then the subroutine exits. Then on the next pass into the subroutine (external subroutine), file2 gets setup a a Q pointer in the VOC, and read from, but trans tries to read from the previous file1. Even if I delete the VOC entry first, then re-write it with a new VOC entry. So...how do you clear the TRANS cache? I would think it would have been cleared when the subroutine ended. George _______________________________________________ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users