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

DCOLLECT record structure


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
gylbharat

Active Member


Joined: 31 Jul 2009
Posts: 565
Location: Bangalore

PostPosted: Tue Dec 03, 2013 7:55 pm
Reply with quote

Hi,

I am having a issue in converting DCOLLECT record field DCAHURBC from character to numeric.

pic.dhe.ibm.com/infocenter/zos/v1r13/index.jsp?topic=%2Fcom.ibm.zos.r13.idai200%2Fda6i2321.htm

172(X'AC') CHARACTER 8 DCAHURBC HIGH ALLOCATED RBA CALCULATED FROM CI
164(X'A4') CHARACTER 8 DCAHARBC HIGH USED RBA CALCULATED FROM CI

Can anyone help me with this?
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Tue Dec 03, 2013 8:17 pm
Reply with quote

Hello,

What values are in the fields?
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Tue Dec 03, 2013 8:58 pm
Reply with quote

If you look at the data with HEX ON you will see that it is binary format rather than CHARACTER as specified in the manual.
Back to top
View user's profile Send private message
gylbharat

Active Member


Joined: 31 Jul 2009
Posts: 565
Location: Bangalore

PostPosted: Tue Dec 03, 2013 9:04 pm
Reply with quote

value is in hexadecimal... but in the file its specified as character with length as 8. It value is in 165 to 172 positions. I have convert this value to ZDF format?

Code:

 BROWSE    HLQ.DCOLLECT.G3833V00             Line 00421580 Col 165 244
 Command ===>                                                  Scroll ===> CSR 
+----7----+----8----+----9----+----0----+----1----+----2----+----3----+----4----
....Oú}.....Q.{........©................                                       
..SCD2PCN                       ..MCDB2PRD                      ..SGD2PCN       


HEX
Code:

 BROWSE    HLQ.DCOLLECT.G3833V00             Line 00421580 Col 165 244
 Command ===>                                                  Scroll ===> CSR 
+----7----+----8----+----9----+----0----+----1----+----2----+----3----+----4----
+----F----+----F----+----F----+----F----+----F----+----F----+----F----+----F----
+----7----+----8----+----9----+----0----+----1----+----2----+----3----+----4----
 ------------------------------------------------------------------------------
....Oú}.....Q.{........©................                                       
0000DDD00000D2C00010000B0000000000000000                                       
00006E0000008A00000000040000000000000000                                       
 ------------------------------------------------------------------------------
..SCD2PCN                       ..MCDB2PRD                      ..SGD2PCN       
00ECCFDCD4444444444444444444444400DCCCFDDC444444444444444444444400ECCFDCD4444444
07234273500000000000000000000000084342279400000000000000000000000727427350000000
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Tue Dec 03, 2013 9:14 pm
Reply with quote

the field even if numeric ( double word ) is defined as char because of the implied/forced alignment of the DS/DC assembler conventions

remember in assembler what defines the data_type of a storage location
is not how it is defined, but the set of instructions used to handle it
and do not forget about the implied lengths used in certain operations.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Tue Dec 03, 2013 9:28 pm
Reply with quote

see here for the DFSORT DCOLLECT examples
www-01.ibm.com/support/docview.wss?rs=114&uid=isg3T7000081
Back to top
View user's profile Send private message
Skolusu

Senior Member


Joined: 07 Dec 2007
Posts: 2205
Location: San Jose

PostPosted: Wed Dec 04, 2013 5:02 am
Reply with quote

Just an FYI, If OP is using syncsort then you probably are getting an error due to syncsort processing of DFSORT symbols. I have seen one other customer come in with a similar problem using DFSORT symbols.
Back to top
View user's profile Send private message
gylbharat

Active Member


Joined: 31 Jul 2009
Posts: 565
Location: Bangalore

PostPosted: Wed Dec 04, 2013 3:45 pm
Reply with quote

Thanks Enrico, I was able to convert it using DFSORT symbols.

Snippet:
Code:

BUILD=(1:1,4,                                         
       5:29,44,                      * DSN             
       52:169,8,BI,ZDF,              * HIGH USED RBA   
       72:X,                                           
       73:177,8,BI,ZDF)              * HIGH ALLOC RBA 
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 -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts To find whether record count are true... DFSORT/ICETOOL 6
No new posts Validating record count of a file is ... DFSORT/ICETOOL 13
Search our Forums:

Back to Top