[Migrated content. Thread originally posted on 12 September 2006]
I use the following construct successfully to get the number of records in a file.STRING "VUTIL32 -I -X " DELIMITED BY SIZE
W-FILE-PREFIX DELIMITED BY " "
LNK-UTIL-FILE-NAME DELIMITED BY " "
" >" DELIMITED BY SIZE
W-FILE-PREFIX DELIMITED BY " "
"GARBAGE.TMP" DELIMITED BY SIZE
INTO COMMAND-NAME.
CALL "C$SYSTEM" USING COMMAND-NAME 96.
CANCEL "C$SYSTEM".
'command-name' actually reads
VUTIL32 -I -X C:\\DATA\\STHMI01 >C:\\DATA\\GARBAGE.TMP
I then read the file c:\\data\\garbage.tmp to get the record count. All perfect.
I am now also using
VUTIL32 -R -A -5 C:\\DATA\\STHMI01 >C:\\DATA\\GARBAGE.TMP
to rebuild the file and to convert it to version 5 format.
It never writes to the file GARBAGE.TMP even though it does create it. Anyone got any ideas why my redirection of the output works in the first example but not in the second?
Keith



