Results 1 to 3 of 3
-
08-17-2012, 10:51 AM #1Senior Member
- Join Date
- Dec 2003
- Location
- Greater Toronto Area Canada
- Posts
- 348
- Thanks
- 4
- Thanked 4 Times in 4 Posts
Getting the date at the end of a query
I know that I can do a command for the admin command line like: q drm > c:\tmp\q_drm.txt and the data will go to a txt file. I also know that I can append by using >>. My question is this. Is there a way to add the system date on to the outuput so that it would be like: q drm > c:\tmp\q_drm.date or something like that? Anyone?
-
08-17-2012, 11:33 AM #2Moderator
- Join Date
- Dec 2003
- Location
- Czech Republic
- Posts
- 2,050
- Thanks
- 2
- Thanked 56 Times in 55 Posts
Hi,
what about
issue message I SystemDate
select date_time from actlog where message like 'ANR1496I SystemDate%' and cast(minute(current_timestamp-date_time) as decimal) < 5 >>sysdate.txt
Harry
-
08-17-2012, 12:07 PM #3Senior Member
- Join Date
- Dec 2003
- Location
- Greater Toronto Area Canada
- Posts
- 348
- Thanks
- 4
- Thanked 4 Times in 4 Posts
Thank you. I will give that a try.
Similar Threads
-
Where do I find End Of Support date (EOS)?
By nohup in forum TSM Installation, Upgrade and ConfigurationReplies: 2Last Post: 06-14-2010, 04:19 AM -
IBM 3583 Library End of support date.
By huttivoli in forum Tape / Media LibraryReplies: 1Last Post: 12-30-2009, 05:02 PM -
No Backup Start or End Date
By jrd31 in forum Backup / Archive DiscussionReplies: 1Last Post: 11-03-2009, 08:46 AM -
Query expiration date backup/archive
By xefil in forum Backup / Archive DiscussionReplies: 3Last Post: 11-21-2008, 12:21 PM -
Need to know date of files !! (Not present with QUERY VOLUME)
By erri in forum ScriptingReplies: 4Last Post: 08-22-2006, 05:47 PM


Reply With Quote