IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Printing a dataset in DUMP format with offset from start


IBM Mainframe Forums -> ABENDS & Debugging
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
harisukumaran

New User


Joined: 14 Jun 2005
Posts: 69

PostPosted: Wed Feb 10, 2021 8:09 pm
Reply with quote

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
View user's profile Send private message
sergeyken
Warnings : 2

Senior Member


Joined: 29 Apr 2008
Posts: 1201

PostPosted: Wed Feb 10, 2021 9:19 pm
Reply with quote

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
View user's profile Send private message
Phrzby Phil

Senior Member


Joined: 31 Oct 2006
Posts: 1018
Location: Richmond, Virginia

PostPosted: Fri Feb 12, 2021 3:58 am
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> ABENDS & Debugging

 


Similar Topics
Topic Forum Replies
No new posts Multiple find/replace on the same dat... DFSORT/ICETOOL 4
No new posts Is it possible to allocate DA dataset... All Other Mainframe Topics 5
No new posts Map VSAM Dataset to a Table/Tablespace DB2 5
No new posts ADR324E-VOL/DATASET SPECIFIED BY DDNA... JCL & VSAM 6
No new posts how to list the number of backup data... JCL & VSAM 3
Search our Forums:

Back to Top