infor.com
concierge
infor u
developer portal
Home
Groups
FACTS - Partner Community
Getting data file was last modified in ProvideX
salbritton
Does anyone have code/syntax they'd be willing to share that would allow me to open a file in ProvideX and determine the month, day, year a file was last modified? I've looked at the ProvideX manuals, but I'm not seeing what I need or the exact syntax to do this. I'd like to compare the value of this to DTE(0:"%Mz%Dz%Yz"). For example, this value for today (11/15/10) would be "111510".
Thanks in advance!
Brad Kraft, Forsythe Associates, Inc.
Find more posts tagged with
Comments
slonschek
Check the fin() function in the manual. Not sure which one you need, but here are the 3 that look most likely to answer your question.
UTC_CTime - Creation/changed time, UTC in seconds since Jan 1,1970
UTC_MTime - Last modified time, UTC in seconds since Jan 1,1970.
UTC_ATime - Last accessed time, UTC in seconds since Jan 1,1970.
Hope this helps.
James Crowther
Sequoia Group, Inc.
Legacy Contributor
this should get you close:
0010 floating point
0020 open (1)"prog/SM/SMU970"
0030 secs=dec($00$+mid(fin(1),5,4))
0040 days=int(secs/86400)
0050 secs=secs-(days*86400)
0060 this_date=jul(1970,1,1)+days
0070 print dte(this_date:"%Mz%Dz%Yz")
0080 hours=secs/3600
0090 print fn%time$(str(hours:"##.00"))
Important Links
Community Hubs
Discussion Forums
Groups
Community News
Popular Tags
ION Connect
ION Workflow
ION API Gateway
Syteline Development
CPQ Discussion Ask a Colleague
Infor Data Fabric
Infor Document Management (IDM)
LN Development
FAQs, How-To, and Best Practices
API Usage