Offsets of the various fields/Tables and other tables and I believe a DSECT would provide that information
search cancel

Offsets of the various fields/Tables and other tables and I believe a DSECT would provide that information

book

Article ID: 108611

calendar_today

Updated On:

Products

Datacom DATACOM - AD Datacom/DB

Issue/Introduction

I would like to know more about the offsets of the various fields in that Table PERSON  and other tables and I believe a DSECT would provide that information. Perhaps you know of another way to get this type of information. ?

Environment

Release: 15.1

Resolution

You may find something close to what you are asking for by using DDUTILTY, see documentation section DDUTILTY - Sample Job Streams and Output.


For example, for our Table PERSON: 
//SYSIN DD * 
+USR DATACOM-INSTALL,NEWUSER 
-UTL LIBRARY,OS 
-UTL LANGUAGE,COBOL,DESCRIPTION 
-UTL COPY,TABLE,PERSON(PROD),PER-TBL 
-END 

However the above does not give the offsets. But gives a full copybook layout. 
Replace DESCRIPTION by NONE to get a easier output to read, 

But using DR instead of COBOL will give the offsets. 
Offset starting at 301, see the documentation for further information. 
Several languages are supported. 

Additional Information

Language ALC will give you the assembler equivalent. 
More like the DSECT you were asking.