[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index]
[Date Index]
[Thread Index]
[SQR-USERS Info]
[SQRUG Home Page]
Re: How do I set dynamic filename
To: SQR-USERS@USA.NET
try this
1)First declare a report in the SETUP
declare-report ReportFile
end-declare
USE-REPORT ReportFile
let $EXT = date_time
let $rptname = $rpt|| '.' ||$EXT
new-report $rptname
display $rpt
Do GETDATA
Then add:
BEGIN-PROCEDURE GETDATA
USE ReportFile
BEGIN-SELECT
xxxxx
xxxxxxxxxx
xxxxxxx
-----Original Message-----
From: Dominick Logiudice [mailto:dlogiudice@PINE.VPCC.SUNYSB.EDU]
Sent: Thursday, December 03, 1998 11:29 AM
To: Multiple recipients of list SQR-USERS
Subject: How do I set dynamic filename
I want make a file name unique for each run. Right now I do
this
OPEN 'C:\PS\Sqr\ERRFILES\PYMST_COMPERR.txt' AS {out}
I would like to change this to
120398_PYMST_COMPERR.txt have the date or something
in there so I don't overlay a previous error file.
Thanks