Reading Type80 SMF Records file



Help for C/C++ for MVS, OS/390 C/C++, z/OS C/C++ and C/C++ Productivity Tools for OS/390

Reading Type80 SMF Records file

Postby cortex » Mon Dec 26, 2011 6:03 pm

Hello,

First of all, sorry to bothering you in this forum, as I am *really* not an IBM guy, but I need your help, since I found this forum.

The question is simple:

I need to compute a file full of type80 records. I know the file is binary and I was able to find his structure (http://publib.boulder.ibm.com/infocente ... e80fmt.htm)

So I wrote a simple C program just to look at the file content. Looking at the record structure I noticed that at the 6th byte, its contents *must* be 0x50 (because it's type80). But the weird thing is that I can't notice any 0x50 on the file, when I print the bytes to the stdout. So I guess I'm looking in the bad way to that file.

So, how can I correctly see the file contents? Is there any mismatch between little-endian or big-endian (as I'm working under a little-endian architecture, and I guess the file was written under big-endian)?


Sorry again to bothering you guys, and I hope you understand the problem.

Kind Regards
cortex
 
Posts: 11
Joined: Mon Dec 26, 2011 5:53 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Reading Type80 SMF Records file

Postby prino » Mon Dec 26, 2011 6:44 pm

Did you transfer the file from z/OS to your box running C as binary?
Robert AH Prins
robert.ah.prins @ the.17+Gb.Google thingy
User avatar
prino
 
Posts: 641
Joined: Wed Mar 11, 2009 12:22 am
Location: Vilnius, Lithuania
Has thanked: 3 times
Been thanked: 29 times

Re: Reading Type80 SMF Records file

Postby BillyBoyo » Mon Dec 26, 2011 6:47 pm

Edit: This is RACF data. If you are going through that, you surely have support people who will be in a much better place to answer than we can be.
BillyBoyo
Global moderator
 
Posts: 3804
Joined: Tue Jan 25, 2011 12:02 am
Has thanked: 22 times
Been thanked: 265 times

Re: Reading Type80 SMF Records file

Postby cortex » Mon Dec 26, 2011 7:02 pm

@ BillyBoyo

Yes, I thought about that before posting this. Sorry. In a couple of minutes I'll open the thread overthere and this one can be closed.


@ prino

The Mainframe admin said that this file is the original binary one, so I suppose yes. (I will open another thread and this one will be closed, as I said. If you don't mind, can you reply on that? Thanks)
cortex
 
Posts: 11
Joined: Mon Dec 26, 2011 5:53 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Reading Type80 SMF Records file

Postby cortex » Mon Dec 26, 2011 7:05 pm

@ prino

mainframe-security/topic6860.html

Thanks in advance.

This one can be closed. Sorry for my error.
cortex
 
Posts: 11
Joined: Mon Dec 26, 2011 5:53 pm
Has thanked: 0 time
Been thanked: 0 time


Return to C, C++

 


  • Related topics
    Replies
    Views
    Last post