Hi
One of our progress scripts was reading in a group of files
(../irepdata.20070701.txt, ../irepdata.20070801.txt, etc..)
using the INPUT STREAM command
INPUT STREAM s-in THROUGH VALUE ("cat ../irepdata.*.txt") NO-ECHO.
however problems happened when I introduced the following set of files. (../irepdata.catg.20070701.txt ../irepdata.catg.20070801.txt).
Temporarily I have changd the name of the files so that the * operator gives the right results but was wondering if there are better solutions anyone is aware of.
I thought of changing the script to use a DO loop(since I only need to read in files generated over a certain time period) and inside each loop, to create filenames in a tempstring and then use "INPUT STREAM s-in FROM VALUE(..)" but how do I check whether a file exists or not?
I looked up the progress manuals and thought that SEARCH would help, however it relies on an environment variable $PROPATH, and I do not want that.
can anyone suggest a solution?
thanks
moskhan
One of our progress scripts was reading in a group of files
(../irepdata.20070701.txt, ../irepdata.20070801.txt, etc..)
using the INPUT STREAM command
INPUT STREAM s-in THROUGH VALUE ("cat ../irepdata.*.txt") NO-ECHO.
however problems happened when I introduced the following set of files. (../irepdata.catg.20070701.txt ../irepdata.catg.20070801.txt).
Temporarily I have changd the name of the files so that the * operator gives the right results but was wondering if there are better solutions anyone is aware of.
I thought of changing the script to use a DO loop(since I only need to read in files generated over a certain time period) and inside each loop, to create filenames in a tempstring and then use "INPUT STREAM s-in FROM VALUE(..)" but how do I check whether a file exists or not?
I looked up the progress manuals and thought that SEARCH would help, however it relies on an environment variable $PROPATH, and I do not want that.
can anyone suggest a solution?
thanks
moskhan