|In the script in Post #3 replace|
set /P rowcnt=< rec_cnt.txt
set rowcnt=%rowcnt:* =%
for /F "tokens=2" %%j in (rec_cnt.txt) do set rowcnt=%%j
About Informatica 8.6 I can't help as I do not have any exposure to that environment.
About your question regarding unzipping the .gz archives the script is quite easy to code but it depends on the tool used to unzip as there is a lot on the web either commercial or free and each one has different command line parameters.
Take the advice posted: these questions are better handled in the Programming Forum..