View previous topic :: View next topic
|
Author |
Message |
harisukumaran
New User
Joined: 14 Jun 2005 Posts: 75
|
|
|
|
How can the contents of a dataset be printed in DUMP format with HEX, text representation of data and offset from start of file ?
I tried using IDCAMS PRINT but it shows offsets from start of each record not from start of file
Code: |
RECORD SEQUENCE NUMBER - 1
000000 C3C9E3C9 6DC3D6D5 D5C5C3E3 C9E5C9E3 E86DE3C5 E2E34040 40404040 4040404
000020 40404040 40404040 40404040 40404040 40404040 40404040 40404040 4040404
000040 40404040 40
RECORD SEQUENCE NUMBER - 2
000000 C3C9E3C9 6DC3D6D5 D5C5C3E3 C9E5C9E3 E86DE3C5 E2E36DC3 C9E3C96D C3D6D5D
000020 C5C3E3C9 E5C9E3E8 6DE3C5E2 E3404040 40404040 40404040 40404040 4040404
000040 40404040 40
RECORD SEQUENCE NUMBER - 3
000000 C3C9E3C9 6DC3D6D5 D5C5C3E3 C9E5C9E3 E86DE3C5 E2E36DC3 C9E3C96D C3D6D5D
000020 C5C3E3C9 E5C9E3E8 6DE3C5E2 E36DC3C9 E3C96DC3 D6D5D5C5 C3E3C9E5 C9E3E86
000040 E3C5E2E3 6D
RECORD SEQUENCE NUMBER - 4
000000 C3C9E3C9 6DC3D6D5 D5C5C3E3 C9E5C9E3 E86DE3C5 E2E36DC3 C9E3C96D C3D6D5D
000020 C5C3E3C9 E5C9E3E8 6DE3C5E2 E3404040 40404040 40404040 40404040 4040404
000040 40404040 40
|
This is not how I want to see the offset. i want to see offset from start of file, not start of each record
Thanks you for your help
I remember doing this a few years ago but can't remember how I did it then |
|
Back to top |
|
|
sergeyken
Senior Member
Joined: 29 Apr 2008 Posts: 2153 Location: USA
|
|
|
|
In zOS ideology,
(1) no such thing as “file” does exist, ever, and
(2) the offset from start of DATASET is not considered, ever. Datasets always consist of particular RECORDS (unlike Windows, or UNIX); all offsets are considered within a single record. |
|
Back to top |
|
|
Phrzby Phil
Senior Member
Joined: 31 Oct 2006 Posts: 1050 Location: Richmond, Virginia
|
|
|
|
Notwithstanding whether or not this makes sense to do this, it would seem a rather straightforward 1st or 2nd programming class project.
Each record above contains its length, so appropriate concatenations should be easy to program. Of course, you must handle the data byte by byte, since in this case the record length is not a multiple of 4.
The same program should handle variable length records.
For extra credit, include lines with the characters where the hex values map so. |
|
Back to top |
|
|
|