[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



How about:

  let $filename = 'C:\PS\SQR\ERRFILES\' || $AsOfToday ||
'_PYMST_COMPERR.txt'
  open $filename as 1 for writing ...blah, blah, blah

Raymond M. Riepenhoff                   Lockheed Martin Utility
Services, Inc.
Computing Specialist                       PO Box 628
Information Technology                  XT-801, MS 6001
Business Applications Support         Piketon, OH 45661
Phone: (740) 897-2331 ext 5842
FAX:    (740) 897-2066                e-mail: riepenhoffrm@lmus.com



-- BEGIN included message

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

-- END included message