Create TIME of a mainframe file.

TSO Programming, ISPF, SDF, SDSF and PDF, FTP, TCP/IP Concepts, SNA & SNA/IP etc...

Create TIME of a mainframe file.

Postby Martin-1999 » Thu May 07, 2015 7:33 pm

Can anyone tell me how to obtain the create TIME of a file on the mainframe.

I have a regular FB 80 flat file (Full stats supplied below) that is sent onto our system via Connect Direct. The file originates on an outside vendors system, it is sent to a Unix box, then the Lan then it arrives onto the mainframe.

There is a long delay somewhere in this chain that we are trying to investigate. At a meeting everyone stated the time the file arrived on the their respective platforms. I was left looking very unknowledgeable when I had to say I don't know how to look up the create time on a mainframe file.

I've tried the LISTC command will the ALL parameter. I've tried using Listdsi and capturing the output. Listdsi does have SYSCREATETIME but it is only for EAV datasets and we have no EAV datasets. I've tried various LM* and LMM* commands but I can only get the create time for members of a PDS not for a flat file. I'm getting fed up reading through multiple sections of IBM Pub Boulder documentation.

General Data                     
 Management class . . : MCSTD     
 Storage class  . . . : SCTSO     
  Volume serial . . . : TSOP34   
  Device type . . . . : 3390     
 Data class . . . . . : DCDEFLT   
  Organization  . . . : PS       
  Record format . . . : FB       
  Record length . . . : 80       
  Block size  . . . . : 27920     
  1st extent cylinders: 1         
  Secondary cylinders : 10       
  Data set name type  :           
  SMS Compressible  . : NO       

Many thanks.
Posts: 6
Joined: Thu May 07, 2015 7:21 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Create TIME of a mainframe file.


Re: Create TIME of a mainframe file.

Postby Akatsukami » Thu May 07, 2015 7:45 pm

The creation time (as opposed to the creation date) of a data set is not recorded on the mainframe, nor is the event recorded in SMF data. You could analyze the latter for the first I/O to a data set, but that's as close as you can come.
"You have sat too long for any good you have been doing lately ... Depart, I say; and let us have done with you. In the name of God, go!" -- what I say to a junior programmer at least once a day
User avatar
Global moderator
Posts: 1053
Joined: Sat Oct 16, 2010 2:31 am
Location: Bloomington, IL
Has thanked: 6 times
Been thanked: 51 times

Re: Create TIME of a mainframe file.

Postby steve-myers » Thu May 07, 2015 8:03 pm

The time of day a mainframe data set was created or referenced. is not a data set attribute, as Akatsukami says. The reason, if any, was buried 45 years ago. I suspect the real reason is using a data set more than once a day, for the most part, was uncommon 45 years ago, so no one regarded it as a requirement. Now, finding 4 bytes (or perhaps 8 bytes) to save the time of day is unlikely to happen.

As Akatsukami says, you can infer a data set access time from the SMF 14/15 records. The major issue is it records when the data set is closed, as opposed to opened, so it won't be all that useful for a very long use time. Unfortunately, for most of us, using SMF for anything is, well, inconvenient!
Global moderator
Posts: 1885
Joined: Thu Jun 03, 2010 6:21 pm
Has thanked: 4 times
Been thanked: 197 times

Return to TSO & ISPF


  • Related topics
    Last post