Perfect.  Thank you!

David Laansma
IT Manager
Hubbard Supply Co.
Direct: 810-342-7143
Office: 810-234-8681
Fax: 810-234-6142
www.hubbardsupply.com
"Delivering Products, Services and Innovative Solutions"


-----Original Message-----
From: u2-users-boun...@listserver.u2ug.org
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Doug Farmer
Sent: Tuesday, October 27, 2009 11:56 AM
To: U2 Users List
Subject: Re: [U2] Re trieving Unix Date and Time stamp on records in a
DIRtype file

Use the DIR command on the file.

Get the path of the file, append the appropriate "\" or "/", then do a
DIR.

For example, on a Unix machine:

     ITEM.ID = 'TEST'
     OPEN '','BP' TO BP THEN
        FILE.PATH = FILEINFO(BP,2)
        ITEM.PATH = FILE.PATH:'/':ITEM.ID
        ITEM.DATE = OCONV(DIR(ITEM.PATH)<2>,'D2/')
     END
     PRINT ITEM.DATE
--------------------------------------------------------

This e-mail is for the use of the intended recipient(s) only. If you
have received this e-mail in error, please notify the sender immediately
and then delete it. If you are not the intended recipient, you must not
use, disclose or distribute this e-mail without the author's prior
permission. We have taken precautions to minimize the risk of
transmitting software viruses, but we advise you to carry out your own
virus checks on any attachment to this message. We cannot accept
liability for any loss or damage caused by software viruses. Any views
and/or opinions expressed in this e-mail are of the author only and do
not represent the views of Epicor Software Corporation or any other
company within its group.


This message has been scanned for malware by Websense. www.websense.com
_______________________________________________
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users
_______________________________________________
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users

Reply via email to