Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Retrieve File creation date

Former Member
0 Likes
1,745

Hi,

I have requirement to retrieve creation date of file stored on server.

Is there any function module to retrieve that one?

Is there any UNIX command to retrieve creation date of file??

Plz do needful.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,015

Hi,

Have you tried using function module SUBST_GET_FILE_LIST.

This returns a structured list of files in a unix directory in the RSFILLST structure format.

I'm not 100% but this should return a date/time. Not sure if it's the creation date or last changed date.

Regards, Andy

Hi,

I have requirement to retrieve creation date of file stored on server.

Is there any function module to retrieve that one?

Is there any UNIX command to retrieve creation date of file??

Plz do needful.

2 REPLIES 2
Read only

Former Member
0 Likes
1,016

Hi,

Have you tried using function module SUBST_GET_FILE_LIST.

This returns a structured list of files in a unix directory in the RSFILLST structure format.

I'm not 100% but this should return a date/time. Not sure if it's the creation date or last changed date.

Regards, Andy

Read only

Former Member
0 Likes
1,015

Hi,

U can use FM EPS_GET_FILE_ATTRIBUTES.

You will get the Last Modification Time of the file in FILE_MTIME .

Then use The perfrom p6_to_date_time_tz (In standard program rstr0400) and pass mtime there and you will get the creation date.

regards

Sandipan