Operating System - OpenVMS
cancel
Showing results for 
Search instead for 
Did you mean: 

Access accountng.dat direct using C ?

 
Thomas Ritter
Respected Contributor

Access accountng.dat direct using C ?

Has anybody attempted to access the accouting files directly say using C ?
Would like to share you code ?

Thanks,
Tom
2 REPLIES
John Gillings
Honored Contributor

Re: Access accountng.dat direct using C ?

Tom,

As you've probably already discovered, the format of ACCOUNTNG.DAT is rather hideous. I've got a very old example in FORTRAN (not even sure if it's up to date). Send me mail if you'd like a copy.

Depending on exactly what you're trying to achieve, some combination of the ACCOUNTING command and SEARCH may be a simpler option.
A crucible of informative mistakes
Thomas Ritter
Respected Contributor

Re: Access accountng.dat direct using C ?

Hi John, I already have a DCL version which provides the output required. I just spent some time using C flipping bits and calling system routines, so I though while I am in programming mode I'd be a bit more adventurous.