[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index]
[Date Index]
[Thread Index]
[SQR-USERS Info]
[SQRUG Home Page]
Re: wildcard
I'm guessing you are using this to crate a listing of files to be read for
some other purpose. This is what I did when I wanted to capture all
programs in a directory...
let $Programs_Out = 'c:\windows\temp\programs.out'
let $Get_Files = 'c:\windows\command.com /c dir /b ' || $Path || '\*.sq* >'
|| $Programs_Out
then...
CALL SYSTEM using $Get_Files #Call_Status wait
What this does is...
1. Sets $Programs_Out as the file to capture the output of the DIR command.
Note the use of the asterik as a wildcard. The '>' symbol forces the output
to $Programs_Out.
2. Sets $Get_Files to the command string used to execute the DIR command
3. CALL SYSTEM invokes the above
Later, I read the file ($Programs_Out) and do my processing.
I hope this was helpful.
David Anderson
-----Original Message-----
From: Mario Mendoza [mailto:mariom@FLAGSHIPCREDIT.COM]
Sent: Thursday, May 24, 2001 11:17 AM
To: SQR-USERS@list.iex.net
Subject: wildcard
Good morning:
What can be used for wildcard in SQR?
example:
if $run_indicator = 'T'
let $lis_glsoars = '/prod/output/glpost/glsoars.*'
The * represents a wildcard, however this code is not getting any of the
files in the directory.
Thank you
Mario Mendoza
1-888-647-6472 x633
mariom@flagshipcredit.com