- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- dir/date by YYYY-MMM-DD
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-30-2007 06:56 AM
тАО01-30-2007 06:56 AM
Thanks!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-30-2007 07:50 AM
тАО01-30-2007 07:50 AM
Re: dir/date by YYYY-MMM-DD
$ DEFINE LIB$DT_FORMAT -
LIB$DATE_FORMAT_037,LIB$TIME_FORMAT_001
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-30-2007 08:15 AM
тАО01-30-2007 08:15 AM
Re: dir/date by YYYY-MMM-DD
$ @SYS$MANAGER:LIB$DT_STARTUP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-30-2007 08:17 AM
тАО01-30-2007 08:17 AM
Re: dir/date by YYYY-MMM-DD
I like making dir output sortable dates.
But you can also teach sort how to do dates.
Here is the core from an old procedure which I first saw back in 1991 created by Eric Osman @ Digital.
$ pipe dir/col=1/wid=fil=55/nohead/notrai/date | sort/spec=sort_by_date.sort sys$pipe sys$output
----------- sort_by_date.sort -----------
/collating_sequence=
(
sequence=("AN","EB","AR","PR","AY","UN","UL","UG","EP","CT","OV","EC",
" ","0"-"9"),
fold
)
! second and third letters of each month
/field=(name=year,pos:65,size:4)
/field=(name=month,pos:62,size:2) ! start at SECOND letter
/field=(name=day,pos:58,size:2)
/field=(name=time,pos:70,size:11)
! assume "14-OCT-1986 09:14:46.00" at position 58
/key=(year,descending)
/key=(month,descending)
/key=(day,descending)
/key=(time,descending)
Cheers,
Hein.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-30-2007 08:25 AM
тАО01-30-2007 08:25 AM
Re: dir/date by YYYY-MMM-DD
I just found that out! Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-30-2007 07:43 PM
тАО01-30-2007 07:43 PM
SolutionQDSB
/SORTED_BY
/SORTED_BY=(keyword[,...])
Presents the information sorted according to several criteria. The
following keywords are allowed:
NODE
List of files is sorted by node specification (currently
unsupported).
DEVICE
List of files is sorted by device specification.
DIRECTORY
List of files is sorted by directory specification.
NAME
List of files is sorted by filename.
TYPE
List of files is sorted by file type.
VERSION
List of files is sorted by version (descending order is the
default).
FILE_ID
List of files is sorted by file identification (by default
ascending on RVN, then on FID).
OWNER_ALPHANUMERIC
List of files is sorted by the alphanumeric representation of the
owner of the files.
OWNER_NUMERIC
List of files is sorted by the numeric representation of the owner of the files.
SIZE_USED
List of files is sorted by the size of the files.
SIZE_ALLOCATED
List of files is sorted by the allocated size of the files.
DATE_CREATED
List of files is sorted by the creation date of the files.
DATE_MODIFIED
List of files is sorted by the revision date of the files.
DATE_EXPIRED
List of files is sorted by the expiration date of the files.
DATE_BACKUPED
List of files is sorted by the backup date of the files.
DATE_EFFECTIVE
List of files is sorted by the effective date of the files.
DATE_RECORDED
List of files is sorted by the recorded date of the files.
DATE_ACCESSED
List of files is sorted by the date the files were last accessed.
DATE_ATTRIBUTES_MODIFIED
List of files is sorted by the date the attributes of the files
were changed.
DATE_DATA_MODIFIED
List of files is sorted by the date the contents of the files were
changed.
Each keyword can be accompanied by two other keywords:
ORDER
ORDER=ASCENDING (the default, except for VERSION), indicates the
information must be sorted in ascending order.
ORDER=DESCENDING, indicates the information must be sorted in
descending order.
PRIORITY
PRIORITY=n, where 'n' is a positive integer number, indicates the
priority of the item in the sort operation; the lower the value,
the higher the priority.
Rob.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-30-2007 10:32 PM
тАО01-30-2007 10:32 PM
Re: dir/date by YYYY-MMM-DD
As Robert mentioned (thanx) the QDSB utility is downloadable from our website ( www.quadratrix.be , look in the Products section). A new version (V0.3) is coming up (I'm polishing it right now).
Regards,
Kris (aka Qkcl)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-31-2007 04:31 AM
тАО01-31-2007 04:31 AM
Re: dir/date by YYYY-MMM-DD
Thanks!