cortex wrote:[...]
(HEX – BIN)
1e-00011110
02-00000010 (1E in ASCII it's "Record Separator character" and 02 is "Start of Text"..weird or coincidence?)
00-00000000
28-00101000
7b-01111011
bc-10111100
01-00000001
11-00010001
31-00110001 (Somewhere behind this...the 0x50 had to appear, right?)
5f-01011111
d4-11010100
e5-11100101
e2-11100010
c1-11000001
Likely record ends here.
The MVS1 Robert mentions is not in the "correct" position, it is four bytes too early - looks likely that the RDW (Record Descriptor Word) is not present in your data that you have shown us. This would make this the SMF record type "02", which you are not expecting.
The 0111315F is a date, the 315th day of the 11th year of the the 2nd millenium, ie 315th day of 2011. The "F" is the sign indicator (unsigned) in a "packed" decimal field. The four bytes in front of that are a binary number indicating hundredths of a second since midnight.
Following that, again with no RDW, it looks like an SMF type 30 record.
cortex wrote:de-11011110
1e-00011110
00-00000000
00-00000000
4b-01001011
3c-00111100
01-00000001
11-00010001
31-00110001
5f-01011111
d4-11010100
e5-11100101
e2-11100010
c1-11000001
d1-11010001
c5-11000101
e2-11100010
c1-11000001
00-00000000
01-00000001
00-00000000
00-00000000
00-00000000
b0-10110000
00-00000000
26-00100110
00-00000000
01-00000001
00-00000000
00-00000000
00-00000000
d6-11010110
00-00000000
ba-10111010
00-00000000
01-00000001
I don't know if I'm dealing with big/little endian issues and, as I said, I don't know if I'm understand the file in the right way.
Regards,
So, problem number one, without the RDW you won't know where one record starts and finishes, as this contains the record-length.
Problem number two, you are getting records other than those you expect. Maybe you have your 80s somewhere, but you'd have to work very hard to find them, and it might not even be possible.
You have to go back to those who supplied the data, again requesting only the data that you require. The type 80s are variable-length records. You'd be better off by having the RDW included, as it is perfectly possible that actual data within the record could look like any delimiting character(s) for a record you are expecting (the time since midnight could give you any byte value possible). You'd have to read the entire file byte-by-byte, or in chunks of the file, to not be tripped by the time.
Even better would be for the IBM guys to give you readable data, ie all textual, then your problems probably go away.
EDIT to correct "thousandths" to "hundredths" for the time since midnight.